home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Hyper / M-Md / MagMaker 1.02.sit / MagMaker Tools B < prev    next >
MacBinary  |  1994-03-19  |  48.5 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: MagMaker Tools B

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Sat Mar 19 12:02:52 1994, modified Sat Mar 19 12:02:52 1994, creator HyperCard, type HyperCard stack, 36288 bytes "MagMaker Tools B" , at 0x8e40 13168 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 4d 61 67 4d 61 6b | 65 72 20 54 6f 6f 6c 73 |..MagMak|er Tools|
|00000010| 20 42 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | B......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 8d c0 00 | 00 33 70 a9 b0 e0 bc a9 |........|.3p.....|
|00000060| b0 e0 bc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e7 a7 00 00 |........|........|
|00000080| 00 00 6c 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..l.STAK|........|
|00000090| 00 00 00 0a 00 00 8d c0 | 00 00 6c 00 00 00 00 00 |........|..l.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a e5 00 00 00 01 |........|........|
|000000b0| 00 00 0b c3 00 00 0e 7e | 00 00 00 00 00 00 00 00 |.......~|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 10 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 20 80 00 | 02 20 80 00 02 20 80 00 |..... ..|. ... ..|
|000000f0| db 6b af 70 00 00 00 00 | 01 1e 01 60 02 36 02 e0 |.k.p....|...`.6..|
|00000100| 00 00 00 00 03 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 40 00 00 0c 8e | 01 18 01 80 00 00 00 00 |...@....|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 66 75 6e 63 74 69 6f 6e | 20 74 68 69 73 50 69 63 |function| thisPic|
|00000690| 74 0d 72 65 74 75 72 6e | 20 28 69 74 65 6d 20 31 |t.return| (item 1|
|000006a0| 20 6f 66 20 66 6c 64 20 | 22 50 69 63 74 54 68 69 | of fld |"PictThi|
|000006b0| 73 50 61 67 65 22 29 0d | 65 6e 64 20 74 68 69 73 |sPage").|end this|
|000006c0| 50 69 63 74 0d 0d 6f 6e | 20 6c 6f 63 6b 50 61 67 |Pict..on| lockPag|
|000006d0| 65 0d 73 65 6e 64 20 6d | 6f 75 73 65 55 70 20 74 |e.send m|ouseUp t|
|000006e0| 6f 20 62 67 20 62 74 6e | 20 22 4c 6f 63 6b 50 61 |o bg btn| "LockPa|
|000006f0| 67 65 22 0d 69 66 20 74 | 68 65 20 68 69 67 68 4c |ge".if t|he highL|
|00000700| 69 67 68 74 20 6f 66 20 | 62 67 20 62 74 6e 20 22 |ight of |bg btn "|
|00000710| 4c 6f 63 6b 50 61 67 65 | 22 20 74 68 65 6e 0d 73 |LockPage|" then.s|
|00000720| 65 74 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 6d |et the n|ame of m|
|00000730| 65 6e 75 49 74 65 6d 20 | 31 30 20 6f 66 20 6d 65 |enuItem |10 of me|
|00000740| 6e 75 20 22 4d 61 67 4d | 61 6b 65 72 22 20 74 6f |nu "MagM|aker" to|
|00000750| 20 22 55 6e 6c 6f 63 6b | 20 50 61 67 65 22 0d 65 | "Unlock| Page".e|
|00000760| 6c 73 65 0d 73 65 74 20 | 74 68 65 20 6e 61 6d 65 |lse.set |the name|
|00000770| 20 6f 66 20 6d 65 6e 75 | 49 74 65 6d 20 31 30 20 | of menu|Item 10 |
|00000780| 6f 66 20 6d 65 6e 75 20 | 22 4d 61 67 4d 61 6b 65 |of menu |"MagMake|
|00000790| 72 22 20 74 6f 20 22 4c | 6f 63 6b 20 50 61 67 65 |r" to "L|ock Page|
|000007a0| 22 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 6c 6f 63 |".end if|.end loc|
|000007b0| 6b 50 61 67 65 0d 0d 6f | 6e 20 62 6f 6f 6b 48 65 |kPage..o|n bookHe|
|000007c0| 6c 70 0d 69 66 20 74 6f | 6f 6c 73 53 74 61 63 6b |lp.if to|olsStack|
|000007d0| 28 29 20 74 68 65 6e 20 | 65 78 69 74 20 62 6f 6f |() then |exit boo|
|000007e0| 6b 48 65 6c 70 0d 69 66 | 20 74 68 65 20 6f 70 74 |kHelp.if| the opt|
|000007f0| 69 6f 6e 4b 65 79 20 69 | 73 20 6e 6f 74 20 64 6f |ionKey i|s not do|
|00000800| 77 6e 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 |wn then.|answer "|
|00000810| 53 6f 72 72 79 2c 20 4d | 61 67 4d 61 6b 65 72 20 |Sorry, M|agMaker |
|00000820| 48 65 6c 70 20 69 73 20 | 6e 6f 74 20 79 65 74 20 |Help is |not yet |
|00000830| 69 6d 70 6c 65 6d 65 6e | 74 65 64 2e 22 0d 65 78 |implemen|ted.".ex|
|00000840| 69 74 20 62 6f 6f 6b 48 | 65 6c 70 0d 65 6e 64 20 |it bookH|elp.end |
|00000850| 69 66 0d 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |if.lock |messages|
|00000860| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00000870| 69 6e 64 6f 77 20 69 74 | 65 6d 20 31 20 6f 66 20 |indow it|em 1 of |
|00000880| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|00000890| 65 22 20 74 68 65 6e 0d | 63 6c 6f 73 65 20 77 69 |e" then.|close wi|
|000008a0| 6e 64 6f 77 20 69 74 65 | 6d 20 31 20 6f 66 20 66 |ndow ite|m 1 of f|
|000008b0| 6c 64 20 22 50 69 63 74 | 54 68 69 73 50 61 67 65 |ld "Pict|ThisPage|
|000008c0| 22 0d 65 6e 64 20 69 66 | 0d 69 66 20 74 68 65 20 |".end if|.if the |
|000008d0| 73 68 69 66 74 4b 65 79 | 20 69 73 20 64 6f 77 6e |shiftKey| is down|
|000008e0| 20 74 68 65 6e 0d 67 6f | 20 73 74 61 63 6b 20 22 | then.go| stack "|
|000008f0| 4d 61 67 4d 61 6b 65 72 | 20 54 6f 6f 6c 73 20 42 |MagMaker| Tools B|
|00000900| 22 20 69 6e 20 61 20 6e | 65 77 20 77 69 6e 64 6f |" in a n|ew windo|
|00000910| 77 0d 73 74 6f 70 20 75 | 73 69 6e 67 20 73 74 61 |w.stop u|sing sta|
|00000920| 63 6b 20 22 4d 61 67 4d | 61 6b 65 72 20 54 6f 6f |ck "MagM|aker Too|
|00000930| 6c 73 20 42 22 0d 65 6c | 73 65 0d 67 6f 20 73 74 |ls B".el|se.go st|
|00000940| 61 63 6b 20 22 4d 61 67 | 4d 61 6b 65 72 20 54 6f |ack "Mag|Maker To|
|00000950| 6f 6c 73 20 41 22 20 69 | 6e 20 61 20 6e 65 77 20 |ols A" i|n a new |
|00000960| 77 69 6e 64 6f 77 0d 73 | 74 6f 70 20 75 73 69 6e |window.s|top usin|
|00000970| 67 20 73 74 61 63 6b 20 | 22 4d 61 67 4d 61 6b 65 |g stack |"MagMake|
|00000980| 72 20 54 6f 6f 6c 73 20 | 41 22 0d 65 6e 64 20 69 |r Tools |A".end i|
|00000990| 66 0d 75 6e 6c 6f 63 6b | 20 6d 65 73 73 61 67 65 |f.unlock| message|
|000009a0| 73 0d 65 6e 64 20 62 6f | 6f 6b 48 65 6c 70 0d 0d |s.end bo|okHelp..|
|000009b0| 0d 6f 6e 20 6d 6f 75 73 | 65 44 6f 77 6e 49 6e 50 |.on mous|eDownInP|
|000009c0| 69 63 74 75 72 65 0d 67 | 6c 6f 62 61 6c 20 74 68 |icture.g|lobal th|
|000009d0| 65 50 69 63 74 4c 6f 63 | 2c 63 68 61 6e 67 65 4c |ePictLoc|,changeL|
|000009e0| 6f 63 0d 70 75 74 20 66 | 6c 64 20 22 50 69 63 74 |oc.put f|ld "Pict|
|000009f0| 54 68 69 73 50 61 67 65 | 22 20 69 6e 74 6f 20 74 |ThisPage|" into t|
|00000a00| 68 65 50 69 63 74 4c 6f | 63 0d 69 66 20 74 68 65 |hePictLo|c.if the|
|00000a10| 20 6f 70 74 69 6f 6e 4b | 65 79 20 69 73 20 64 6f | optionK|ey is do|
|00000a20| 77 6e 20 61 6e 64 20 22 | 4d 61 67 4d 61 6b 65 72 |wn and "|MagMaker|
|00000a30| 22 20 69 73 20 69 6e 20 | 74 68 65 20 6d 65 6e 75 |" is in |the menu|
|00000a40| 73 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 72 |s then.p|ut the r|
|00000a50| 65 63 74 20 6f 66 20 77 | 69 6e 64 6f 77 20 28 69 |ect of w|indow (i|
|00000a60| 74 65 6d 20 31 20 6f 66 | 20 74 68 65 50 69 63 74 |tem 1 of| thePict|
|00000a70| 4c 6f 63 29 20 69 6e 74 | 6f 20 61 64 6a 4c 6f 63 |Loc) int|o adjLoc|
|00000a80| 0d 70 75 74 20 74 72 75 | 6e 63 28 28 69 74 65 6d |.put tru|nc((item|
|00000a90| 20 33 20 6f 66 20 61 64 | 6a 4c 6f 63 20 2d 20 69 | 3 of ad|jLoc - i|
|00000aa0| 74 65 6d 20 31 20 6f 66 | 20 61 64 6a 4c 6f 63 29 |tem 1 of| adjLoc)|
|00000ab0| 2f 32 29 20 26 20 22 2c | 22 20 26 20 74 72 75 6e |/2) & ",|" & trun|
|00000ac0| 63 28 28 69 74 65 6d 20 | 34 20 6f 66 20 61 64 6a |c((item |4 of adj|
|00000ad0| 4c 6f 63 20 2d 20 69 74 | 65 6d 20 32 20 6f 66 20 |Loc - it|em 2 of |
|00000ae0| 61 64 6a 4c 6f 63 29 2f | 32 29 20 69 6e 74 6f 20 |adjLoc)/|2) into |
|00000af0| 69 6e 43 65 6e 74 65 72 | 0d 72 65 70 65 61 74 20 |inCenter|.repeat |
|00000b00| 75 6e 74 69 6c 20 74 68 | 65 20 6d 6f 75 73 65 20 |until th|e mouse |
|00000b10| 69 73 20 75 70 0d 73 65 | 74 20 74 68 65 20 6c 6f |is up.se|t the lo|
|00000b20| 63 20 6f 66 20 77 69 6e | 64 6f 77 20 28 69 74 65 |c of win|dow (ite|
|00000b30| 6d 20 31 20 6f 66 20 74 | 68 65 50 69 63 74 4c 6f |m 1 of t|hePictLo|
|00000b40| 63 29 20 74 6f 20 28 28 | 69 74 65 6d 20 31 20 6f |c) to ((|item 1 o|
|00000b50| 66 20 74 68 65 20 6d 6f | 75 73 65 4c 6f 63 20 2d |f the mo|useLoc -|
|00000b60| 20 69 74 65 6d 20 31 20 | 6f 66 20 69 6e 43 65 6e | item 1 |of inCen|
|00000b70| 74 65 72 29 20 26 20 22 | 2c 22 20 26 20 28 69 74 |ter) & "|," & (it|
|00000b80| 65 6d 20 32 20 6f 66 20 | 74 68 65 20 6d 6f 75 73 |em 2 of |the mous|
|00000b90| 65 4c 6f 63 20 2d 20 69 | 74 65 6d 20 32 20 6f 66 |eLoc - i|tem 2 of|
|00000ba0| 20 69 6e 43 65 6e 74 65 | 72 29 29 0d 65 6e 64 20 | inCente|r)).end |
|00000bb0| 72 65 70 65 61 74 0d 70 | 75 74 20 74 72 75 65 20 |repeat.p|ut true |
|00000bc0| 69 6e 74 6f 20 63 68 61 | 6e 67 65 4c 6f 63 0d 65 |into cha|ngeLoc.e|
|00000bd0| 6e 64 20 69 66 0d 65 6e | 64 20 6d 6f 75 73 65 44 |nd if.en|d mouseD|
|00000be0| 6f 77 6e 49 6e 50 69 63 | 74 75 72 65 0d 0d 6f 6e |ownInPic|ture..on|
|00000bf0| 20 6d 6f 75 73 65 55 70 | 49 6e 50 69 63 74 75 72 | mouseUp|InPictur|
|00000c00| 65 0d 67 6c 6f 62 61 6c | 20 74 68 65 50 69 63 74 |e.global| thePict|
|00000c10| 4c 6f 63 2c 63 68 61 6e | 67 65 4c 6f 63 0d 69 66 |Loc,chan|geLoc.if|
|00000c20| 20 63 68 61 6e 67 65 4c | 6f 63 20 69 73 20 74 72 | changeL|oc is tr|
|00000c30| 75 65 20 74 68 65 6e 0d | 70 75 74 20 66 61 6c 73 |ue then.|put fals|
|00000c40| 65 20 69 6e 74 6f 20 63 | 68 61 6e 67 65 4c 6f 63 |e into c|hangeLoc|
|00000c50| 0d 70 75 74 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |.put (it|em 1 of |
|00000c60| 74 68 65 50 69 63 74 4c | 6f 63 29 20 26 20 22 2c |thePictL|oc) & ",|
|00000c70| 22 20 26 20 74 68 65 20 | 6c 6f 63 20 6f 66 20 77 |" & the |loc of w|
|00000c80| 69 6e 64 6f 77 20 28 69 | 74 65 6d 20 31 20 6f 66 |indow (i|tem 1 of|
|00000c90| 20 74 68 65 50 69 63 74 | 4c 6f 63 29 20 69 6e 74 | thePict|Loc) int|
|00000ca0| 6f 20 66 6c 64 20 22 50 | 69 63 74 54 68 69 73 50 |o fld "P|ictThisP|
|00000cb0| 61 67 65 22 0d 70 75 74 | 20 66 61 6c 73 65 20 69 |age".put| false i|
|00000cc0| 6e 74 6f 20 63 68 61 6e | 67 65 4c 6f 63 0d 73 65 |nto chan|geLoc.se|
|00000cd0| 6e 64 20 6f 70 65 6e 43 | 61 72 64 20 74 6f 20 74 |nd openC|ard to t|
|00000ce0| 68 69 73 20 63 64 0d 65 | 6c 73 65 0d 73 65 6e 64 |his cd.e|lse.send|
|00000cf0| 20 6d 6f 75 73 65 55 70 | 49 6e 50 69 63 74 75 72 | mouseUp|InPictur|
|00000d00| 65 20 74 6f 20 74 68 69 | 73 20 73 74 61 63 6b 0d |e to thi|s stack.|
|00000d10| 65 6e 64 20 69 66 0d 65 | 6e 64 20 6d 6f 75 73 65 |end if.e|nd mouse|
|00000d20| 55 70 49 6e 50 69 63 74 | 75 72 65 0d 0d 6f 6e 20 |UpInPict|ure..on |
|00000d30| 6e 65 77 50 61 67 65 0d | 6c 6f 63 6b 20 73 63 72 |newPage.|lock scr|
|00000d40| 65 65 6e 0d 64 6f 4d 65 | 6e 75 20 22 43 6f 70 79 |een.doMe|nu "Copy|
|00000d50| 20 43 61 72 64 22 0d 64 | 6f 4d 65 6e 75 20 22 50 | Card".d|oMenu "P|
|00000d60| 61 73 74 65 20 43 61 72 | 64 22 0d 70 75 74 20 65 |aste Car|d".put e|
|00000d70| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 42 |mpty int|o fld "B|
|00000d80| 6f 64 79 22 0d 69 66 20 | 74 68 65 72 65 20 69 73 |ody".if |there is|
|00000d90| 20 61 20 62 74 6e 20 22 | 50 69 63 74 75 72 65 22 | a btn "|Picture"|
|00000da0| 20 74 68 65 6e 0d 73 65 | 6c 65 63 74 20 62 74 6e | then.se|lect btn|
|00000db0| 20 22 50 69 63 74 75 72 | 65 22 0d 64 6f 4d 65 6e | "Pictur|e".doMen|
|00000dc0| 75 20 22 43 75 74 20 42 | 75 74 74 6f 6e 22 0d 65 |u "Cut B|utton".e|
|00000dd0| 6e 64 20 69 66 0d 70 75 | 74 20 65 6d 70 74 79 20 |nd if.pu|t empty |
|00000de0| 69 6e 74 6f 20 66 6c 64 | 20 22 50 69 63 74 54 68 |into fld| "PictTh|
|00000df0| 69 73 50 61 67 65 22 0d | 70 75 74 20 65 6d 70 74 |isPage".|put empt|
|00000e00| 79 20 69 6e 74 6f 20 66 | 6c 64 20 22 4e 6f 74 65 |y into f|ld "Note|
|00000e10| 50 61 64 22 0d 63 68 6f | 6f 73 65 20 74 68 65 20 |Pad".cho|ose the |
|00000e20| 62 72 6f 77 73 65 20 74 | 6f 6f 6c 0d 65 6e 64 20 |browse t|ool.end |
|00000e30| 6e 65 77 50 61 67 65 0d | 0d 66 75 6e 63 74 69 6f |newPage.|.functio|
|00000e40| 6e 20 6c 69 73 74 49 6e | 73 74 61 6c 6c 65 64 46 |n listIn|stalledF|
|00000e50| 6f 6e 74 73 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |onts.put| empty i|
|00000e60| 6e 74 6f 20 66 6f 6e 74 | 4c 69 73 74 0d 69 66 20 |nto font|List.if |
|00000e70| 46 6f 6e 74 45 78 69 73 | 74 73 28 22 48 65 6c 76 |FontExis|ts("Helv|
|00000e80| 65 74 69 63 61 22 29 20 | 69 73 20 74 72 75 65 20 |etica") |is true |
|00000e90| 74 68 65 6e 20 70 75 74 | 20 22 48 65 6c 76 65 74 |then put| "Helvet|
|00000ea0| 69 63 61 22 20 26 20 72 | 65 74 75 72 6e 20 61 66 |ica" & r|eturn af|
|00000eb0| 74 65 72 20 66 6f 6e 74 | 4c 69 73 74 0d 69 66 20 |ter font|List.if |
|00000ec0| 46 6f 6e 74 45 78 69 73 | 74 73 28 22 4e 65 77 20 |FontExis|ts("New |
|00000ed0| 59 6f 72 6b 22 29 20 69 | 73 20 74 72 75 65 20 74 |York") i|s true t|
|00000ee0| 68 65 6e 20 70 75 74 20 | 22 4e 65 77 20 59 6f 72 |hen put |"New Yor|
|00000ef0| 6b 22 20 26 20 72 65 74 | 75 72 6e 20 61 66 74 65 |k" & ret|urn afte|
|00000f00| 72 20 66 6f 6e 74 4c 69 | 73 74 0d 69 66 20 46 6f |r fontLi|st.if Fo|
|00000f10| 6e 74 45 78 69 73 74 73 | 28 22 50 61 6c 61 74 69 |ntExists|("Palati|
|00000f20| 6e 6f 22 29 20 69 73 20 | 74 72 75 65 20 74 68 65 |no") is |true the|
|00000f30| 6e 20 70 75 74 20 22 50 | 61 6c 61 74 69 6e 6f 22 |n put "P|alatino"|
|00000f40| 20 26 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 | & retur|n after |
|00000f50| 66 6f 6e 74 4c 69 73 74 | 0d 69 66 20 46 6f 6e 74 |fontList|.if Font|
|00000f60| 45 78 69 73 74 73 28 22 | 54 69 6d 65 73 22 29 20 |Exists("|Times") |
|00000f70| 69 73 20 74 72 75 65 20 | 74 68 65 6e 20 70 75 74 |is true |then put|
|00000f80| 20 22 54 69 6d 65 73 22 | 20 26 20 72 65 74 75 72 | "Times"| & retur|
|00000f90| 6e 20 61 66 74 65 72 20 | 66 6f 6e 74 4c 69 73 74 |n after |fontList|
|00000fa0| 0d 69 66 20 66 6f 6e 74 | 4c 69 73 74 20 69 73 20 |.if font|List is |
|00000fb0| 65 6d 70 74 79 20 74 68 | 65 6e 0d 61 6e 73 77 65 |empty th|en.answe|
|00000fc0| 72 20 22 4d 61 67 4d 61 | 6b 65 72 20 63 61 6e 20 |r "MagMa|ker can |
|00000fd0| 75 73 65 20 48 65 6c 76 | 65 74 69 63 61 2c 20 4e |use Helv|etica, N|
|00000fe0| 65 77 20 59 6f 72 6b 2c | 20 50 61 6c 61 74 69 6e |ew York,| Palatin|
|00000ff0| 6f 20 61 6e 64 20 54 69 | 6d 65 73 20 66 6f 6e 74 |o and Ti|mes font|
|00001000| 73 2e 20 22 20 26 20 c2 | 0d 22 48 6f 77 65 76 65 |s. " & .|."Howeve|
|00001010| 72 2c 20 79 6f 75 20 68 | 61 76 65 20 6e 6f 6e 65 |r, you h|ave none|
|00001020| 20 6f 66 20 74 68 65 20 | 61 62 6f 76 65 20 69 6e | of the |above in|
|00001030| 73 74 61 6c 6c 65 64 2e | 20 53 6f 72 72 79 2e 22 |stalled.| Sorry."|
|00001040| 0d 65 78 69 74 20 74 6f | 20 68 79 70 65 72 43 61 |.exit to| hyperCa|
|00001050| 72 64 0d 65 6e 64 20 69 | 66 0d 72 65 74 75 72 6e |rd.end i|f.return|
|00001060| 20 66 6f 6e 74 4c 69 73 | 74 0d 65 6e 64 20 6c 69 | fontLis|t.end li|
|00001070| 73 74 49 6e 73 74 61 6c | 6c 65 64 46 6f 6e 74 73 |stInstal|ledFonts|
|00001080| 0d 0d 6f 6e 20 67 65 74 | 50 69 63 74 4c 69 73 74 |..on get|PictList|
|00001090| 0d 69 66 20 74 6f 6f 6c | 73 53 74 61 63 6b 28 29 |.if tool|sStack()|
|000010a0| 20 74 68 65 6e 20 65 78 | 69 74 20 67 65 74 50 69 | then ex|it getPi|
|000010b0| 63 74 4c 69 73 74 0d 67 | 6c 6f 62 61 6c 20 66 69 |ctList.g|lobal fi|
|000010c0| 6c 65 4e 61 6d 65 2c 64 | 6f 44 69 74 68 65 72 0d |leName,d|oDither.|
|000010d0| 70 75 74 20 67 65 74 46 | 69 6c 65 4e 61 6d 65 28 |put getF|ileName(|
|000010e0| 74 68 65 20 6c 6f 6e 67 | 20 6e 61 6d 65 20 6f 66 |the long| name of|
|000010f0| 20 74 68 69 73 20 73 74 | 61 63 6b 29 20 69 6e 74 | this st|ack) int|
|00001100| 6f 20 46 69 6c 65 4e 61 | 6d 65 0d 67 65 74 20 52 |o FileNa|me.get R|
|00001110| 65 73 6f 75 72 63 65 73 | 28 46 69 6c 65 4e 61 6d |esources|(FileNam|
|00001120| 65 29 0d 73 6f 72 74 20 | 69 74 0d 70 75 74 20 69 |e).sort |it.put i|
|00001130| 74 20 69 6e 74 6f 20 72 | 65 73 4c 69 73 74 0d 70 |t into r|esList.p|
|00001140| 75 74 20 72 65 74 75 72 | 6e 20 61 66 74 65 72 20 |ut retur|n after |
|00001150| 72 65 73 4c 69 73 74 0d | 72 65 70 65 61 74 20 77 |resList.|repeat w|
|00001160| 69 74 68 20 78 20 3d 20 | 31 20 74 6f 20 74 68 65 |ith x = |1 to the|
|00001170| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00001180| 20 6f 66 20 72 65 73 4c | 69 73 74 0d 69 66 20 77 | of resL|ist.if w|
|00001190| 6f 72 64 20 31 20 6f 66 | 20 6c 69 6e 65 20 78 20 |ord 1 of| line x |
|000011a0| 6f 66 20 72 65 73 4c 69 | 73 74 20 69 73 20 22 50 |of resLi|st is "P|
|000011b0| 49 43 54 22 20 74 68 65 | 6e 20 70 75 74 20 6c 69 |ICT" the|n put li|
|000011c0| 6e 65 20 78 20 6f 66 20 | 72 65 73 4c 69 73 74 20 |ne x of |resList |
|000011d0| 26 20 72 65 74 75 72 6e | 20 61 66 74 65 72 20 70 |& return| after p|
|000011e0| 69 63 74 4c 69 73 74 0d | 65 6e 64 20 72 65 70 65 |ictList.|end repe|
|000011f0| 61 74 0d 69 66 20 70 69 | 63 74 4c 69 73 74 20 69 |at.if pi|ctList i|
|00001200| 73 20 6e 6f 74 20 22 70 | 69 63 74 4c 69 73 74 22 |s not "p|ictList"|
|00001210| 20 74 68 65 6e 0d 70 75 | 74 20 70 69 63 74 4c 69 | then.pu|t pictLi|
|00001220| 73 74 20 69 6e 74 6f 20 | 66 6c 64 20 22 50 69 63 |st into |fld "Pic|
|00001230| 74 4c 69 73 74 22 0d 65 | 6c 73 65 0d 70 75 74 20 |tList".e|lse.put |
|00001240| 65 6d 70 74 79 20 69 6e | 74 6f 20 66 6c 64 20 70 |empty in|to fld p|
|00001250| 69 63 74 4c 49 73 74 0d | 65 6e 64 20 69 66 0d 65 |ictLIst.|end if.e|
|00001260| 6e 64 20 67 65 74 50 69 | 63 74 4c 69 73 74 0d 0d |nd getPi|ctList..|
|00001270| 6f 6e 20 73 68 6f 77 54 | 6f 6f 6c 73 0d 69 66 20 |on showT|ools.if |
|00001280| 74 6f 6f 6c 73 53 74 61 | 63 6b 28 29 20 74 68 65 |toolsSta|ck() the|
|00001290| 6e 20 65 78 69 74 20 73 | 68 6f 77 54 6f 6f 6c 73 |n exit s|howTools|
|000012a0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|000012b0| 69 6e 64 6f 77 20 22 42 | 6f 6f 6b 4d 61 6b 65 72 |indow "B|ookMaker|
|000012c0| 54 6f 6f 6c 73 22 20 74 | 68 65 6e 0d 63 6c 6f 73 |Tools" t|hen.clos|
|000012d0| 65 20 77 69 6e 64 6f 77 | 20 22 42 6f 6f 6b 4d 61 |e window| "BookMa|
|000012e0| 6b 65 72 54 6f 6f 6c 73 | 22 0d 73 65 74 20 74 68 |kerTools|".set th|
|000012f0| 65 20 6e 61 6d 65 20 6f | 66 20 6d 65 6e 75 49 74 |e name o|f menuIt|
|00001300| 65 6d 20 31 20 6f 66 20 | 6d 65 6e 75 20 22 4d 61 |em 1 of |menu "Ma|
|00001310| 67 4d 61 6b 65 72 22 20 | 74 6f 20 22 53 68 6f 77 |gMaker" |to "Show|
|00001320| 20 54 6f 6f 6c 73 22 0d | 65 6c 73 65 0d 70 61 6c | Tools".|else.pal|
|00001330| 65 74 74 65 20 22 42 6f | 6f 6b 4d 61 6b 65 72 54 |ette "Bo|okMakerT|
|00001340| 6f 6f 6c 73 22 0d 73 65 | 74 20 74 68 65 20 6e 61 |ools".se|t the na|
|00001350| 6d 65 20 6f 66 20 6d 65 | 6e 75 49 74 65 6d 20 31 |me of me|nuItem 1|
|00001360| 20 6f 66 20 6d 65 6e 75 | 20 22 4d 61 67 4d 61 6b | of menu| "MagMak|
|00001370| 65 72 22 20 74 6f 20 22 | 48 69 64 65 20 54 6f 6f |er" to "|Hide Too|
|00001380| 6c 73 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 73 |ls".end |if.end s|
|00001390| 68 6f 77 54 6f 6f 6c 73 | 0d 0d 6f 6e 20 73 68 6f |howTools|..on sho|
|000013a0| 77 50 69 63 74 4c 69 73 | 74 0d 69 66 20 74 6f 6f |wPictLis|t.if too|
|000013b0| 6c 73 53 74 61 63 6b 28 | 29 20 74 68 65 6e 20 65 |lsStack(|) then e|
|000013c0| 78 69 74 20 73 68 6f 77 | 50 69 63 74 4c 69 73 74 |xit show|PictList|
|000013d0| 0d 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 6c 6f 63 |.lock sc|reen.loc|
|000013e0| 6b 20 6d 65 73 73 61 67 | 65 73 0d 70 75 73 68 20 |k messag|es.push |
|000013f0| 63 64 0d 69 66 20 74 68 | 65 20 6e 61 6d 65 20 6f |cd.if th|e name o|
|00001400| 66 20 6d 65 6e 75 49 74 | 65 6d 20 32 20 6f 66 20 |f menuIt|em 2 of |
|00001410| 6d 65 6e 75 20 22 4d 61 | 67 4d 61 6b 65 72 22 20 |menu "Ma|gMaker" |
|00001420| 69 73 20 22 48 69 64 65 | 20 50 69 63 74 20 4c 69 |is "Hide| Pict Li|
|00001430| 73 74 22 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |st" then|.repeat |
|00001440| 77 69 74 68 20 78 20 3d | 20 31 20 74 6f 20 74 68 |with x =| 1 to th|
|00001450| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 67 73 20 |e number| of bgs |
|00001460| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 0d 68 69 |of this |stack.hi|
|00001470| 64 65 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 |de fld "|PictThis|
|00001480| 50 61 67 65 22 0d 68 69 | 64 65 20 66 6c 64 20 22 |Page".hi|de fld "|
|00001490| 50 69 63 74 4c 69 73 74 | 22 0d 67 6f 20 6e 65 78 |PictList|".go nex|
|000014a0| 74 20 62 67 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |t bg.end| repeat.|
|000014b0| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|000014c0| 6d 65 6e 75 49 74 65 6d | 20 32 20 6f 66 20 6d 65 |menuItem| 2 of me|
|000014d0| 6e 75 20 22 4d 61 67 4d | 61 6b 65 72 22 20 74 6f |nu "MagM|aker" to|
|000014e0| 20 22 53 68 6f 77 20 50 | 69 63 74 20 4c 69 73 74 | "Show P|ict List|
|000014f0| 22 0d 65 6c 73 65 0d 72 | 65 70 65 61 74 20 77 69 |".else.r|epeat wi|
|00001500| 74 68 20 78 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th x = 1| to the |
|00001510| 6e 75 6d 62 65 72 20 6f | 66 20 62 67 73 20 6f 66 |number o|f bgs of|
|00001520| 20 74 68 69 73 20 73 74 | 61 63 6b 0d 73 68 6f 77 | this st|ack.show|
|00001530| 20 66 6c 64 20 22 50 69 | 63 74 54 68 69 73 50 61 | fld "Pi|ctThisPa|
|00001540| 67 65 22 0d 73 68 6f 77 | 20 66 6c 64 20 22 50 69 |ge".show| fld "Pi|
|00001550| 63 74 4c 69 73 74 22 0d | 67 65 74 50 69 63 74 4c |ctList".|getPictL|
|00001560| 69 73 74 0d 67 6f 20 6e | 65 78 74 20 62 67 0d 65 |ist.go n|ext bg.e|
|00001570| 6e 64 20 72 65 70 65 61 | 74 0d 73 65 74 20 74 68 |nd repea|t.set th|
|00001580| 65 20 6e 61 6d 65 20 6f | 66 20 6d 65 6e 75 49 74 |e name o|f menuIt|
|00001590| 65 6d 20 32 20 6f 66 20 | 6d 65 6e 75 20 22 4d 61 |em 2 of |menu "Ma|
|000015a0| 67 4d 61 6b 65 72 22 20 | 74 6f 20 22 48 69 64 65 |gMaker" |to "Hide|
|000015b0| 20 50 69 63 74 20 4c 69 | 73 74 22 0d 65 6e 64 20 | Pict Li|st".end |
|000015c0| 69 66 0d 70 6f 70 20 63 | 64 0d 65 6e 64 20 73 68 |if.pop c|d.end sh|
|000015d0| 6f 77 50 69 63 74 4c 69 | 73 74 0d 0d 66 75 6e 63 |owPictLi|st..func|
|000015e0| 74 69 6f 6e 20 67 65 74 | 46 69 6c 65 4e 61 6d 65 |tion get|FileName|
|000015f0| 20 77 68 61 74 46 69 6c | 65 0d 64 65 6c 65 74 65 | whatFil|e.delete|
|00001600| 20 77 6f 72 64 20 31 20 | 6f 66 20 77 68 61 74 46 | word 1 |of whatF|
|00001610| 69 6c 65 0d 64 65 6c 65 | 74 65 20 74 68 65 20 6c |ile.dele|te the l|
|00001620| 61 73 74 20 63 68 61 72 | 20 6f 66 20 77 68 61 74 |ast char| of what|
|00001630| 46 69 6c 65 0d 64 65 6c | 65 74 65 20 74 68 65 20 |File.del|ete the |
|00001640| 66 69 72 73 74 20 63 68 | 61 72 20 6f 66 20 77 68 |first ch|ar of wh|
|00001650| 61 74 46 69 6c 65 0d 72 | 65 74 75 72 6e 20 77 68 |atFile.r|eturn wh|
|00001660| 61 74 46 69 6c 65 0d 65 | 6e 64 20 67 65 74 46 69 |atFile.e|nd getFi|
|00001670| 6c 65 4e 61 6d 65 0d 0d | 6f 6e 20 70 69 63 74 75 |leName..|on pictu|
|00001680| 72 65 50 6c 61 63 65 0d | 62 75 74 74 6f 6e 33 0d |rePlace.|button3.|
|00001690| 65 6e 64 20 70 69 63 74 | 75 72 65 50 6c 61 63 65 |end pict|urePlace|
|000016a0| 0d 0d 6f 6e 20 63 6f 70 | 79 50 69 63 74 75 72 65 |..on cop|yPicture|
|000016b0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 62 |.if ther|e is a b|
|000016c0| 74 6e 20 22 50 69 63 74 | 75 72 65 22 20 74 68 65 |tn "Pict|ure" the|
|000016d0| 6e 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 73 65 |n.lock s|creen.se|
|000016e0| 6c 65 63 74 20 62 74 6e | 20 22 50 69 63 74 75 72 |lect btn| "Pictur|
|000016f0| 65 22 0d 64 6f 4d 65 6e | 75 20 22 43 6f 70 79 20 |e".doMen|u "Copy |
|00001700| 42 75 74 74 6f 6e 22 0d | 63 68 6f 6f 73 65 20 74 |Button".|choose t|
|00001710| 68 65 20 62 72 6f 77 73 | 65 20 74 6f 6f 6c 0d 65 |he brows|e tool.e|
|00001720| 6c 73 65 0d 61 6e 73 77 | 65 72 20 22 54 68 65 72 |lse.answ|er "Ther|
|00001730| 65 20 69 73 20 6e 6f 20 | 72 75 6e 2d 61 72 6f 75 |e is no |run-arou|
|00001740| 6e 64 20 74 6f 20 63 6f | 70 79 20 6f 6e 20 74 68 |nd to co|py on th|
|00001750| 69 73 20 70 61 67 65 2e | 22 0d 65 6e 64 20 69 66 |is page.|".end if|
|00001760| 0d 65 6e 64 20 63 6f 70 | 79 50 69 63 74 75 72 65 |.end cop|yPicture|
|00001770| 0d 0d 6f 6e 20 70 61 73 | 74 65 50 69 63 74 75 72 |..on pas|tePictur|
|00001780| 65 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |e.if the|re is a |
|00001790| 6d 65 6e 75 20 22 45 64 | 69 74 22 20 74 68 65 6e |menu "Ed|it" then|
|000017a0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 6d |.if ther|e is a m|
|000017b0| 65 6e 75 49 74 65 6d 20 | 22 50 61 73 74 65 20 42 |enuItem |"Paste B|
|000017c0| 75 74 74 6f 6e 22 20 6f | 66 20 6d 65 6e 75 20 22 |utton" o|f menu "|
|000017d0| 45 64 69 74 22 20 74 68 | 65 6e 0d 69 66 20 74 68 |Edit" th|en.if th|
|000017e0| 65 72 65 20 69 73 20 61 | 20 62 74 6e 20 22 50 69 |ere is a| btn "Pi|
|000017f0| 63 74 75 72 65 22 20 74 | 68 65 6e 0d 61 6e 73 77 |cture" t|hen.answ|
|00001800| 65 72 20 22 44 65 6c 65 | 74 65 20 63 75 72 72 65 |er "Dele|te curre|
|00001810| 6e 74 20 74 65 78 74 20 | 72 75 6e 2d 61 72 6f 75 |nt text |run-arou|
|00001820| 6e 64 3f 22 20 77 69 74 | 68 20 22 43 61 6e 63 65 |nd?" wit|h "Cance|
|00001830| 6c 22 20 6f 72 20 22 44 | 65 6c 65 74 65 22 0d 69 |l" or "D|elete".i|
|00001840| 66 20 69 74 20 69 73 20 | 6e 6f 74 20 22 44 65 6c |f it is |not "Del|
|00001850| 65 74 65 22 20 74 68 65 | 6e 20 65 78 69 74 20 70 |ete" the|n exit p|
|00001860| 61 73 74 65 50 69 63 74 | 75 72 65 0d 70 75 74 20 |astePict|ure.put |
|00001870| 74 72 75 65 20 69 6e 74 | 6f 20 64 65 6c 65 74 65 |true int|o delete|
|00001880| 4f 6c 64 0d 73 65 74 20 | 74 68 65 20 6e 61 6d 65 |Old.set |the name|
|00001890| 20 6f 66 20 62 74 6e 20 | 22 50 69 63 74 75 72 65 | of btn |"Picture|
|000018a0| 22 20 74 6f 20 22 6f 6c | 64 50 69 63 74 75 72 65 |" to "ol|dPicture|
|000018b0| 22 0d 65 6e 64 20 69 66 | 0d 64 6f 4d 65 6e 75 20 |".end if|.doMenu |
|000018c0| 22 50 61 73 74 65 20 42 | 75 74 74 6f 6e 22 0d 69 |"Paste B|utton".i|
|000018d0| 66 20 64 65 6c 65 74 65 | 4f 6c 64 20 69 73 20 74 |f delete|Old is t|
|000018e0| 72 75 65 20 74 68 65 6e | 0d 73 65 6c 65 63 74 20 |rue then|.select |
|000018f0| 62 74 6e 20 22 6f 6c 64 | 50 69 63 74 75 72 65 22 |btn "old|Picture"|
|00001900| 0d 64 6f 4d 65 6e 75 20 | 22 43 75 74 20 42 75 74 |.doMenu |"Cut But|
|00001910| 74 6f 6e 22 0d 65 6e 64 | 20 69 66 0d 63 68 6f 6f |ton".end| if.choo|
|00001920| 73 65 20 74 68 65 20 62 | 72 6f 77 73 65 20 74 6f |se the b|rowse to|
|00001930| 6f 6c 0d 61 6e 73 77 65 | 72 20 22 52 65 66 6c 6f |ol.answe|r "Reflo|
|00001940| 77 20 74 65 78 74 3f 22 | 20 77 69 74 68 20 22 43 |w text?"| with "C|
|00001950| 61 6e 63 65 6c 22 20 6f | 72 20 22 4f 4b 22 0d 69 |ancel" o|r "OK".i|
|00001960| 66 20 69 74 20 69 73 20 | 22 4f 4b 22 20 74 68 65 |f it is |"OK" the|
|00001970| 6e 20 72 65 46 6c 6f 77 | 57 69 74 68 53 74 79 6c |n reFlow|WithStyl|
|00001980| 65 20 2d 2d 20 64 6f 55 | 70 64 61 74 65 0d 65 6e |e -- doU|pdate.en|
|00001990| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |d if.end| if.end |
|000019a0| 70 61 73 74 65 50 69 63 | 74 75 72 65 0d 0d 6f 6e |pastePic|ture..on|
|000019b0| 20 63 6f 70 79 50 69 63 | 74 0d 67 6c 6f 62 61 6c | copyPic|t.global|
|000019c0| 20 63 6f 70 69 65 64 50 | 69 63 74 0d 69 66 20 66 | copiedP|ict.if f|
|000019d0| 6c 64 20 22 50 69 63 74 | 54 68 69 73 50 61 67 65 |ld "Pict|ThisPage|
|000019e0| 22 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |" is not| empty t|
|000019f0| 68 65 6e 0d 70 75 74 20 | 66 6c 64 20 22 50 69 63 |hen.put |fld "Pic|
|00001a00| 74 54 68 69 73 50 61 67 | 65 22 20 69 6e 74 6f 20 |tThisPag|e" into |
|00001a10| 63 6f 70 69 65 64 50 69 | 63 74 0d 65 6c 73 65 0d |copiedPi|ct.else.|
|00001a20| 61 6e 73 77 65 72 20 22 | 4e 6f 20 50 49 43 54 20 |answer "|No PICT |
|00001a30| 74 6f 20 63 6f 70 79 20 | 6f 6e 20 74 68 69 73 20 |to copy |on this |
|00001a40| 70 61 67 65 2e 22 0d 65 | 6e 64 20 69 66 0d 65 6e |page.".e|nd if.en|
|00001a50| 64 20 63 6f 70 79 50 69 | 63 74 0d 0d 6f 6e 20 70 |d copyPi|ct..on p|
|00001a60| 61 73 74 65 50 69 63 74 | 0d 67 6c 6f 62 61 6c 20 |astePict|.global |
|00001a70| 63 6f 70 69 65 64 50 69 | 63 74 0d 69 66 20 63 6f |copiedPi|ct.if co|
|00001a80| 70 69 65 64 50 69 63 74 | 20 69 73 20 6e 6f 74 20 |piedPict| is not |
|00001a90| 65 6d 70 74 79 20 74 68 | 65 6e 0d 69 66 20 66 6c |empty th|en.if fl|
|00001aa0| 64 20 22 50 69 63 74 54 | 68 69 73 50 61 67 65 22 |d "PictT|hisPage"|
|00001ab0| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 20 74 68 | is not |empty th|
|00001ac0| 65 6e 0d 61 6e 73 77 65 | 72 20 22 52 65 70 6c 61 |en.answe|r "Repla|
|00001ad0| 63 65 20 63 75 72 72 65 | 6e 74 20 50 49 43 54 3f |ce curre|nt PICT?|
|00001ae0| 22 20 77 69 74 68 20 22 | 43 61 6e 63 65 6c 22 20 |" with "|Cancel" |
|00001af0| 6f 72 20 22 4f 4b 22 0d | 69 66 20 69 74 20 69 73 |or "OK".|if it is|
|00001b00| 20 6e 6f 74 20 22 4f 4b | 22 20 74 68 65 6e 20 65 | not "OK|" then e|
|00001b10| 78 69 74 20 70 61 73 74 | 65 50 69 63 74 0d 65 6e |xit past|ePict.en|
|00001b20| 64 20 69 66 0d 69 66 20 | 74 68 65 72 65 20 69 73 |d if.if |there is|
|00001b30| 20 61 20 77 69 6e 64 6f | 77 20 28 69 74 65 6d 20 | a windo|w (item |
|00001b40| 31 20 6f 66 20 66 6c 64 | 20 22 50 69 63 74 54 68 |1 of fld| "PictTh|
|00001b50| 69 73 50 61 67 65 22 29 | 20 74 68 65 6e 0d 63 6c |isPage")| then.cl|
|00001b60| 6f 73 65 20 77 69 6e 64 | 6f 77 20 28 69 74 65 6d |ose wind|ow (item|
|00001b70| 20 31 20 6f 66 20 66 6c | 64 20 22 50 69 63 74 54 | 1 of fl|d "PictT|
|00001b80| 68 69 73 50 61 67 65 22 | 29 0d 65 6e 64 20 69 66 |hisPage"|).end if|
|00001b90| 0d 70 75 74 20 63 6f 70 | 69 65 64 50 69 63 74 20 |.put cop|iedPict |
|00001ba0| 69 6e 74 6f 20 66 6c 64 | 20 22 50 69 63 74 54 68 |into fld| "PictTh|
|00001bb0| 69 73 50 61 67 65 22 0d | 70 75 74 20 65 6d 70 74 |isPage".|put empt|
|00001bc0| 79 20 69 6e 74 6f 20 63 | 6f 70 69 65 64 50 69 63 |y into c|opiedPic|
|00001bd0| 74 0d 6f 70 65 6e 43 61 | 72 64 0d 65 6c 73 65 0d |t.openCa|rd.else.|
|00001be0| 61 6e 73 77 65 72 20 22 | 54 68 65 72 65 20 69 73 |answer "|There is|
|00001bf0| 20 6e 6f 20 50 49 43 54 | 20 74 6f 20 70 61 73 74 | no PICT| to past|
|00001c00| 65 2e 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 70 |e.".end |if.end p|
|00001c10| 61 73 74 65 50 69 63 74 | 0d 0d 0d 6f 6e 20 64 65 |astePict|...on de|
|00001c20| 6c 65 74 65 50 69 63 74 | 75 72 65 20 77 68 61 74 |letePict|ure what|
|00001c30| 57 61 72 6e 69 6e 67 0d | 69 66 20 74 6f 6f 6c 73 |Warning.|if tools|
|00001c40| 53 74 61 63 6b 28 29 20 | 74 68 65 6e 20 65 78 69 |Stack() |then exi|
|00001c50| 74 20 64 65 6c 65 74 65 | 50 69 63 74 75 72 65 0d |t delete|Picture.|
|00001c60| 67 6c 6f 62 61 6c 20 74 | 68 65 54 6f 6f 6c 0d 69 |global t|heTool.i|
|00001c70| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 62 74 6e |f there |is a btn|
|00001c80| 20 22 50 69 63 74 75 72 | 65 22 20 74 68 65 6e 0d | "Pictur|e" then.|
|00001c90| 63 6f 70 79 50 69 63 74 | 75 72 65 0d 63 75 74 42 |copyPict|ure.cutB|
|00001ca0| 75 74 74 6f 6e 0d 65 6c | 73 65 0d 61 6e 73 77 65 |utton.el|se.answe|
|00001cb0| 72 20 22 4e 6f 20 70 69 | 63 74 75 72 65 20 62 6f |r "No pi|cture bo|
|00001cc0| 78 20 74 6f 20 64 65 6c | 65 74 65 20 6f 6e 20 74 |x to del|ete on t|
|00001cd0| 68 69 73 20 70 61 67 65 | 2e 22 0d 65 6e 64 20 69 |his page|.".end i|
|00001ce0| 66 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |f.put em|pty into|
|00001cf0| 20 74 68 65 54 6f 6f 6c | 0d 73 65 74 20 74 68 65 | theTool|.set the|
|00001d00| 20 69 63 6f 6e 20 6f 66 | 20 62 67 20 62 74 6e 20 | icon of| bg btn |
|00001d10| 22 54 68 65 54 6f 6f 6c | 42 74 6e 22 20 74 6f 20 |"TheTool|Btn" to |
|00001d20| 22 48 61 6e 64 22 0d 73 | 65 74 20 74 68 65 20 63 |"Hand".s|et the c|
|00001d30| 68 65 63 6b 4d 61 72 6b | 20 6f 66 20 6d 65 6e 75 |heckMark| of menu|
|00001d40| 49 74 65 6d 20 31 31 20 | 6f 66 20 6d 65 6e 75 20 |Item 11 |of menu |
|00001d50| 22 4c 61 79 6f 75 74 22 | 20 74 6f 20 66 61 6c 73 |"Layout"| to fals|
|00001d60| 65 0d 65 6e 64 20 64 65 | 6c 65 74 65 50 69 63 74 |e.end de|letePict|
|00001d70| 75 72 65 0d 0d 6f 6e 20 | 63 75 74 42 75 74 74 6f |ure..on |cutButto|
|00001d80| 6e 0d 67 6c 6f 62 61 6c | 20 74 68 65 43 6f 72 6e |n.global| theCorn|
|00001d90| 65 72 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 73 |er.lock |screen.s|
|00001da0| 65 6c 65 63 74 20 62 74 | 6e 20 22 50 69 63 74 75 |elect bt|n "Pictu|
|00001db0| 72 65 22 0d 64 6f 4d 65 | 6e 75 20 22 43 75 74 20 |re".doMe|nu "Cut |
|00001dc0| 42 75 74 74 6f 6e 22 0d | 63 68 6f 6f 73 65 20 74 |Button".|choose t|
|00001dd0| 68 65 20 62 72 6f 77 73 | 65 20 74 6f 6f 6c 0d 61 |he brows|e tool.a|
|00001de0| 6e 73 77 65 72 20 22 52 | 65 66 6c 6f 77 20 74 65 |nswer "R|eflow te|
|00001df0| 78 74 3f 22 20 77 69 74 | 68 20 22 43 61 6e 63 65 |xt?" wit|h "Cance|
|00001e00| 6c 22 20 6f 72 20 22 4f | 4b 22 0d 69 66 20 69 74 |l" or "O|K".if it|
|00001e10| 20 69 73 20 22 4f 4b 22 | 20 74 68 65 6e 0d 72 65 | is "OK"| then.re|
|00001e20| 46 6c 6f 77 57 69 74 68 | 53 74 79 6c 65 0d 65 6e |FlowWith|Style.en|
|00001e30| 64 20 69 66 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |d if.put| empty i|
|00001e40| 6e 74 6f 20 74 68 65 43 | 6f 72 6e 65 72 0d 65 6e |nto theC|orner.en|
|00001e50| 64 20 63 75 74 42 75 74 | 74 6f 6e 0d 0d 0d 6f 6e |d cutBut|ton...on|
|00001e60| 20 70 6c 61 63 65 50 69 | 63 74 20 77 68 61 74 50 | placePi|ct whatP|
|00001e70| 69 63 74 0d 67 6c 6f 62 | 61 6c 20 64 6f 44 69 74 |ict.glob|al doDit|
|00001e80| 68 65 72 0d 69 66 20 77 | 68 61 74 50 69 63 74 20 |her.if w|hatPict |
|00001e90| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00001ea0| 6e 20 70 75 74 20 22 50 | 6c 61 63 65 22 20 26 20 |n put "P|lace" & |
|00001eb0| 72 65 74 75 72 6e 20 26 | 20 77 68 61 74 50 69 63 |return &| whatPic|
|00001ec0| 74 20 69 6e 74 6f 20 69 | 74 0d 69 66 20 77 68 61 |t into i|t.if wha|
|00001ed0| 74 50 69 63 74 20 69 73 | 20 65 6d 70 74 79 20 74 |tPict is| empty t|
|00001ee0| 68 65 6e 20 67 65 74 20 | 73 68 6f 77 4c 69 73 74 |hen get |showList|
|00001ef0| 28 66 6c 64 20 22 50 69 | 63 74 4c 69 73 74 22 2c |(fld "Pi|ctList",|
|00001f00| 22 50 6c 61 63 65 20 50 | 49 43 54 22 2c 74 72 75 |"Place P|ICT",tru|
|00001f10| 65 2c 66 61 6c 73 65 2c | 22 50 6c 61 63 65 2c 43 |e,false,|"Place,C|
|00001f20| 61 6e 63 65 6c 22 2c 31 | 29 0d 69 66 20 6c 69 6e |ancel",1|).if lin|
|00001f30| 65 20 31 20 6f 66 20 69 | 74 20 69 73 20 22 50 6c |e 1 of i|t is "Pl|
|00001f40| 61 63 65 22 20 74 68 65 | 6e 0d 69 66 20 66 6c 64 |ace" the|n.if fld|
|00001f50| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 20 | "PictTh|isPage" |
|00001f60| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00001f70| 6e 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |n.if the|re is a |
|00001f80| 77 69 6e 64 6f 77 20 28 | 69 74 65 6d 20 31 20 6f |window (|item 1 o|
|00001f90| 66 20 66 6c 64 20 22 50 | 69 63 74 54 68 69 73 50 |f fld "P|ictThisP|
|00001fa0| 61 67 65 22 29 20 74 68 | 65 6e 20 63 6c 6f 73 65 |age") th|en close|
|00001fb0| 20 77 69 6e 64 6f 77 20 | 28 69 74 65 6d 20 31 20 | window |(item 1 |
|00001fc0| 6f 66 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 |of fld "|PictThis|
|00001fd0| 50 61 67 65 22 29 0d 65 | 6e 64 20 69 66 0d 70 75 |Page").e|nd if.pu|
|00001fe0| 74 20 77 6f 72 64 20 34 | 20 74 6f 20 28 74 68 65 |t word 4| to (the|
|00001ff0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 77 6f 72 64 73 | number |of words|
|00002000| 20 6f 66 20 6c 69 6e 65 | 20 28 6c 69 6e 65 20 32 | of line| (line 2|
|00002010| 20 6f 66 20 69 74 29 20 | 6f 66 20 66 6c 64 20 22 | of it) |of fld "|
|00002020| 50 69 63 74 4c 69 73 74 | 22 29 20 6f 66 20 6c 69 |PictList|") of li|
|00002030| 6e 65 20 28 6c 69 6e 65 | 20 32 20 6f 66 20 69 74 |ne (line| 2 of it|
|00002040| 29 20 6f 66 20 66 6c 64 | 20 22 50 69 63 74 4c 69 |) of fld| "PictLi|
|00002050| 73 74 22 20 69 6e 74 6f | 20 74 68 65 50 69 63 74 |st" into| thePict|
|00002060| 0d 69 66 20 69 74 65 6d | 20 32 20 74 6f 20 33 20 |.if item| 2 to 3 |
|00002070| 6f 66 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 |of fld "|PictThis|
|00002080| 50 61 67 65 22 20 69 73 | 20 65 6d 70 74 79 20 74 |Page" is| empty t|
|00002090| 68 65 6e 20 70 75 74 20 | 22 39 30 2c 35 34 22 20 |hen put |"90,54" |
|000020a0| 69 6e 74 6f 20 77 68 61 | 74 4c 6f 63 0d 65 6c 73 |into wha|tLoc.els|
|000020b0| 65 20 70 75 74 20 69 74 | 65 6d 20 32 20 74 6f 20 |e put it|em 2 to |
|000020c0| 33 20 6f 66 20 66 6c 64 | 20 22 50 69 63 74 54 68 |3 of fld| "PictTh|
|000020d0| 69 73 50 61 67 65 22 20 | 20 69 6e 74 6f 20 77 68 |isPage" | into wh|
|000020e0| 61 74 4c 6f 63 0d 70 69 | 63 74 75 72 65 20 74 68 |atLoc.pi|cture th|
|000020f0| 65 50 69 63 74 2c 72 65 | 73 6f 75 72 63 65 2c 72 |ePict,re|source,r|
|00002100| 65 63 74 2c 66 61 6c 73 | 65 20 2d 2d 20 2c 34 0d |ect,fals|e -- ,4.|
|00002110| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00002120| 6e 64 6f 77 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |ndow (it|em 1 of |
|00002130| 74 68 65 50 69 63 74 29 | 20 74 68 65 6e 20 73 65 |thePict)| then se|
|00002140| 74 20 74 68 65 20 64 69 | 74 68 65 72 69 6e 67 20 |t the di|thering |
|00002150| 6f 66 20 77 69 6e 64 6f | 77 20 28 69 74 65 6d 20 |of windo|w (item |
|00002160| 31 20 6f 66 20 74 68 65 | 50 69 63 74 29 20 74 6f |1 of the|Pict) to|
|00002170| 20 64 6f 44 69 74 68 65 | 72 0d 69 66 20 74 68 65 | doDithe|r.if the|
|00002180| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 69 |re is a |window i|
|00002190| 74 65 6d 20 31 20 6f 66 | 20 74 68 65 50 69 63 74 |tem 1 of| thePict|
|000021a0| 20 74 68 65 6e 0d 73 65 | 74 20 74 6f 70 6c 65 66 | then.se|t toplef|
|000021b0| 74 20 6f 66 20 77 69 6e | 64 6f 77 20 69 74 65 6d |t of win|dow item|
|000021c0| 20 31 20 6f 66 20 74 68 | 65 50 69 63 74 20 74 6f | 1 of th|ePict to|
|000021d0| 20 77 68 61 74 4c 6f 63 | 0d 65 6e 64 20 69 66 0d | whatLoc|.end if.|
|000021e0| 70 75 74 20 74 68 65 50 | 69 63 74 20 26 20 22 2c |put theP|ict & ",|
|000021f0| 22 20 26 20 77 68 61 74 | 4c 6f 63 20 69 6e 74 6f |" & what|Loc into|
|00002200| 20 66 6c 64 20 22 50 69 | 63 74 54 68 69 73 50 61 | fld "Pi|ctThisPa|
|00002210| 67 65 22 0d 73 68 6f 77 | 20 77 69 6e 64 6f 77 20 |ge".show| window |
|00002220| 74 68 65 50 69 63 74 0d | 65 6c 73 65 0d 65 78 69 |thePict.|else.exi|
|00002230| 74 20 74 6f 20 68 79 70 | 65 72 43 61 72 64 0d 65 |t to hyp|erCard.e|
|00002240| 6e 64 20 69 66 0d 65 6e | 64 20 70 6c 61 63 65 50 |nd if.en|d placeP|
|00002250| 69 63 74 0d 0d 6f 6e 20 | 63 75 74 50 69 63 74 0d |ict..on |cutPict.|
|00002260| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00002270| 6e 64 6f 77 20 28 69 74 | 65 6d 20 31 20 6f 66 20 |ndow (it|em 1 of |
|00002280| 66 6c 64 20 22 50 69 63 | 74 54 68 69 73 50 61 67 |fld "Pic|tThisPag|
|00002290| 65 22 29 20 74 68 65 6e | 0d 63 6c 6f 73 65 20 77 |e") then|.close w|
|000022a0| 69 6e 64 6f 77 20 28 69 | 74 65 6d 20 31 20 6f 66 |indow (i|tem 1 of|
|000022b0| 20 66 6c 64 20 22 50 69 | 63 74 54 68 69 73 50 61 | fld "Pi|ctThisPa|
|000022c0| 67 65 22 29 0d 63 6f 70 | 79 50 69 63 74 0d 70 75 |ge").cop|yPict.pu|
|000022d0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 66 6c 64 |t empty |into fld|
|000022e0| 20 22 50 69 63 74 54 68 | 69 73 50 61 67 65 22 0d | "PictTh|isPage".|
|000022f0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 62 74 |if there| is a bt|
|00002300| 6e 20 22 50 69 63 74 75 | 72 65 22 20 74 68 65 6e |n "Pictu|re" then|
|00002310| 0d 61 6e 73 77 65 72 20 | 22 44 65 6c 65 74 65 20 |.answer |"Delete |
|00002320| 72 75 6e 2d 61 72 6f 75 | 6e 64 3f 22 20 77 69 74 |run-arou|nd?" wit|
|00002330| 68 20 22 4e 6f 22 20 6f | 72 20 22 44 65 6c 65 74 |h "No" o|r "Delet|
|00002340| 65 22 0d 69 66 20 69 74 | 20 69 73 20 22 44 65 6c |e".if it| is "Del|
|00002350| 65 74 65 22 20 74 68 65 | 6e 20 63 75 74 42 75 74 |ete" the|n cutBut|
|00002360| 74 6f 6e 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 69 |ton.end |if.end i|
|00002370| 66 0d 65 6e 64 20 63 75 | 74 50 69 63 74 0d 0d 6f |f.end cu|tPict..o|
|00002380| 6e 20 69 6d 70 6f 72 74 | 50 69 63 74 0d 69 66 20 |n import|Pict.if |
|00002390| 74 6f 6f 6c 73 53 74 61 | 63 6b 28 29 20 74 68 65 |toolsSta|ck() the|
|000023a0| 6e 20 65 78 69 74 20 69 | 6d 70 6f 72 74 50 69 63 |n exit i|mportPic|
|000023b0| 74 0d 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |t.if the|re is a |
|000023c0| 77 69 6e 64 6f 77 20 28 | 69 74 65 6d 20 31 20 6f |window (|item 1 o|
|000023d0| 66 20 66 6c 64 20 22 50 | 69 63 74 54 68 69 73 50 |f fld "P|ictThisP|
|000023e0| 61 67 65 22 29 20 74 68 | 65 6e 0d 63 6c 6f 73 65 |age") th|en.close|
|000023f0| 20 77 69 6e 64 6f 77 20 | 28 69 74 65 6d 20 31 20 | window |(item 1 |
|00002400| 6f 66 20 66 6c 64 20 22 | 50 69 63 74 54 68 69 73 |of fld "|PictThis|
|00002410| 50 61 67 65 22 29 0d 65 | 6e 64 20 69 66 0d 61 6e |Page").e|nd if.an|
|00002420| 73 77 65 72 20 66 69 6c | 65 20 22 43 68 6f 6f 73 |swer fil|e "Choos|
|00002430| 65 20 61 20 50 49 43 54 | 20 66 69 6c 65 20 74 6f |e a PICT| file to|
|00002440| 20 69 6d 70 6f 72 74 20 | 69 6e 74 6f 22 20 26 20 | import |into" & |
|00002450| 72 65 74 75 72 6e 20 26 | 20 74 68 65 20 73 68 6f |return &| the sho|
|00002460| 72 74 20 6e 61 6d 65 20 | 6f 66 20 74 68 69 73 20 |rt name |of this |
|00002470| 73 74 61 63 6b 20 6f 66 | 20 74 79 70 65 20 22 50 |stack of| type "P|
|00002480| 49 43 54 22 0d 69 66 20 | 69 74 20 69 73 20 65 6d |ICT".if |it is em|
|00002490| 70 74 79 20 6f 72 20 74 | 68 65 20 72 65 73 75 6c |pty or t|he resul|
|000024a0| 74 20 69 73 20 22 43 61 | 6e 63 65 6c 22 20 74 68 |t is "Ca|ncel" th|
|000024b0| 65 6e 0d 6f 70 65 6e 43 | 61 72 64 0d 65 78 69 74 |en.openC|ard.exit|
|000024c0| 20 69 6d 70 6f 72 74 50 | 69 63 74 0d 65 6e 64 20 | importP|ict.end |
|000024d0| 69 66 0d 70 75 74 20 69 | 74 20 69 6e 74 6f 20 74 |if.put i|t into t|
|000024e0| 68 65 50 69 63 74 46 69 | 6c 65 0d 61 73 6b 20 22 |hePictFi|le.ask "|
|000024f0| 4e 61 6d 65 20 74 68 65 | 20 66 69 6c 65 2e 22 0d |Name the| file.".|
|00002500| 69 66 20 69 74 20 69 73 | 20 22 43 61 6e 63 65 6c |if it is| "Cancel|
|00002510| 22 20 6f 72 20 69 74 20 | 69 73 20 65 6d 70 74 79 |" or it |is empty|
|00002520| 20 6f 72 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 | or the |result i|
|00002530| 73 20 22 43 61 6e 63 65 | 6c 22 20 74 68 65 6e 0d |s "Cance|l" then.|
|00002540| 6f 70 65 6e 43 61 72 64 | 0d 65 78 69 74 20 69 6d |openCard|.exit im|
|00002550| 70 6f 72 74 50 69 63 74 | 0d 65 6e 64 20 69 66 0d |portPict|.end if.|
|00002560| 70 75 74 20 69 74 20 69 | 6e 74 6f 20 74 68 65 50 |put it i|nto theP|
|00002570| 69 63 74 4e 61 6d 65 0d | 50 49 43 54 74 6f 52 73 |ictName.|PICTtoRs|
|00002580| 72 63 20 74 68 65 50 69 | 63 74 46 69 6c 65 2c 74 |rc thePi|ctFile,t|
|00002590| 68 65 50 69 63 74 4e 61 | 6d 65 0d 67 65 74 50 69 |hePictNa|me.getPi|
|000025a0| 63 74 4c 69 73 74 0d 61 | 6e 73 77 65 72 20 22 50 |ctList.a|nswer "P|
|000025b0| 6c 61 63 65 20 69 6d 70 | 6f 72 74 65 64 20 70 69 |lace imp|orted pi|
|000025c0| 63 74 75 65 20 6f 6e 20 | 74 68 69 73 20 70 61 67 |ctue on |this pag|
|000025d0| 65 3f 22 20 77 69 74 68 | 20 22 4e 6f 22 20 6f 72 |e?" with| "No" or|
|000025e0| 20 22 59 65 73 22 0d 69 | 66 20 69 74 20 69 73 20 | "Yes".i|f it is |
|000025f0| 22 59 65 73 22 20 74 68 | 65 6e 0d 67 65 74 50 69 |"Yes" th|en.getPi|
|00002600| 63 74 75 72 65 20 74 68 | 65 50 69 63 74 4e 61 6d |cture th|ePictNam|
|00002610| 65 0d 73 68 6f 77 20 77 | 69 6e 64 6f 77 20 74 68 |e.show w|indow th|
|00002620| 65 50 69 63 74 4e 61 6d | 65 0d 70 75 74 20 74 68 |ePictNam|e.put th|
|00002630| 65 50 69 63 74 4e 61 6d | 65 20 26 20 22 2c 22 20 |ePictNam|e & "," |
|00002640| 26 20 74 68 65 20 6c 6f | 63 20 6f 66 20 77 69 6e |& the lo|c of win|
|00002650| 64 6f 77 20 74 68 65 50 | 69 63 74 4e 61 6d 65 20 |dow theP|ictName |
|00002660| 69 6e 74 6f 20 66 6c 64 | 20 22 50 69 63 74 54 68 |into fld| "PictTh|
|00002670| 69 73 50 61 67 65 22 0d | 65 6c 73 65 0d 6f 70 65 |isPage".|else.ope|
|00002680| 6e 43 61 72 64 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nCard.en|d if.end|
|00002690| 20 69 6d 70 6f 72 74 50 | 69 63 74 0d 0d 0d 6f 6e | importP|ict...on|
|000026a0| 20 65 64 69 74 50 69 63 | 74 0d 67 65 74 50 69 63 | editPic|t.getPic|
|000026b0| 74 4c 69 73 74 0d 67 65 | 74 20 73 68 6f 77 4c 69 |tList.ge|t showLi|
|000026c0| 73 74 28 66 6c 64 20 22 | 50 69 63 74 4c 69 73 74 |st(fld "|PictList|
|000026d0| 22 2c 22 43 75 72 72 65 | 6e 74 6c 79 20 69 6e 73 |","Curre|ntly ins|
|000026e0| 74 61 6c 6c 65 64 20 50 | 49 43 54 73 2e 22 2c 74 |talled P|ICTs.",t|
|000026f0| 72 75 65 2c 74 72 75 65 | 2c 22 44 65 6c 65 74 65 |rue,true|,"Delete|
|00002700| 2c 43 61 6e 63 65 6c 2c | 49 6d 70 6f 72 74 22 2c |,Cancel,|Import",|
|00002710| 31 29 0d 70 75 74 20 28 | 74 68 65 20 6e 75 6d 62 |1).put (|the numb|
|00002720| 65 72 20 6f 66 20 69 74 | 65 6d 73 20 6f 66 20 6c |er of it|ems of l|
|00002730| 69 6e 65 20 32 20 6f 66 | 20 69 74 29 20 69 6e 74 |ine 2 of| it) int|
|00002740| 6f 20 74 6f 74 61 6c 49 | 74 65 6d 73 0d 69 66 20 |o totalI|tems.if |
|00002750| 6c 69 6e 65 20 31 20 6f | 66 20 69 74 20 69 73 20 |line 1 o|f it is |
|00002760| 22 44 65 6c 65 74 65 22 | 20 74 68 65 6e 0d 72 65 |"Delete"| then.re|
|00002770| 70 65 61 74 20 77 69 74 | 68 20 78 20 3d 20 31 20 |peat wit|h x = 1 |
|00002780| 74 6f 20 74 6f 74 61 6c | 49 74 65 6d 73 0d 70 75 |to total|Items.pu|
|00002790| 74 20 6c 69 6e 65 20 28 | 69 74 65 6d 20 74 6f 74 |t line (|item tot|
|000027a0| 61 6c 49 74 65 6d 73 20 | 2d 20 28 78 20 2d 31 29 |alItems |- (x -1)|
|000027b0| 20 6f 66 20 6c 69 6e 65 | 20 32 20 6f 66 20 69 74 | of line| 2 of it|
|000027c0| 29 20 6f 66 20 66 6c 64 | 20 22 50 69 63 74 4c 69 |) of fld| "PictLi|
|000027d0| 73 74 22 20 69 6e 74 6f | 20 64 65 6c 50 69 63 74 |st" into| delPict|
|000027e0| 0d 72 65 6d 6f 76 65 50 | 69 63 74 28 64 65 6c 50 |.removeP|ict(delP|
|000027f0| 69 63 74 29 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |ict).end| repeat.|
|00002800| 67 65 74 50 69 63 74 4c | 69 73 74 0d 65 78 69 74 |getPictL|ist.exit|
|00002810| 20 65 64 69 74 50 69 63 | 74 0d 65 6e 64 20 69 66 | editPic|t.end if|
|00002820| 0d 69 66 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 74 |.if line| 1 of it|
|00002830| 20 69 73 20 22 49 6d 70 | 6f 72 74 22 20 74 68 65 | is "Imp|ort" the|
|00002840| 6e 0d 69 6d 70 6f 72 74 | 50 69 63 74 0d 65 78 69 |n.import|Pict.exi|
|00002850| 74 20 65 64 69 74 50 69 | 63 74 0d 65 6e 64 20 69 |t editPi|ct.end i|
|00002860| 66 0d 6f 70 65 6e 43 61 | 72 64 0d 65 6e 64 20 65 |f.openCa|rd.end e|
|00002870| 64 69 74 50 69 63 74 0d | 0d 0d 6f 6e 20 75 73 65 |ditPict.|..on use|
|00002880| 53 74 61 63 6b 20 74 68 | 65 53 74 61 63 6b 0d 2d |Stack th|eStack.-|
|00002890| 2d 20 6d 61 6b 65 20 73 | 75 72 65 20 74 68 65 20 |- make s|ure the |
|000028a0| 73 74 61 63 6b 20 63 61 | 6e 20 62 65 20 27 75 73 |stack ca|n be 'us|
|000028b0| 65 64 27 0d 69 66 20 74 | 68 65 53 74 61 63 6b 20 |ed'.if t|heStack |
|000028c0| 69 73 20 69 6e 20 74 68 | 65 20 73 74 61 63 6b 73 |is in th|e stacks|
|000028d0| 49 6e 55 73 65 20 74 68 | 65 6e 20 65 78 69 74 20 |InUse th|en exit |
|000028e0| 75 73 65 53 74 61 63 6b | 0d 69 66 20 74 68 65 20 |useStack|.if the |
|000028f0| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00002900| 69 6e 20 74 68 65 20 73 | 74 61 63 6b 73 49 6e 55 |in the s|tacksInU|
|00002910| 73 65 20 3d 20 31 30 0d | 74 68 65 6e 20 73 74 6f |se = 10.|then sto|
|00002920| 70 20 75 73 69 6e 67 20 | 73 74 61 63 6b 20 28 6c |p using |stack (l|
|00002930| 69 6e 65 20 31 20 6f 66 | 20 74 68 65 20 73 74 61 |ine 1 of| the sta|
|00002940| 63 6b 73 49 6e 55 73 65 | 29 0d 69 66 20 74 68 65 |cksInUse|).if the|
|00002950| 72 65 20 69 73 20 61 20 | 73 74 61 63 6b 20 74 68 |re is a |stack th|
|00002960| 65 53 74 61 63 6b 20 74 | 68 65 6e 0d 73 74 61 72 |eStack t|hen.star|
|00002970| 74 20 75 73 69 6e 67 20 | 73 74 61 63 6b 20 74 68 |t using |stack th|
|00002980| 65 53 74 61 63 6b 0d 67 | 65 74 20 74 68 65 20 72 |eStack.g|et the r|
|00002990| 65 73 75 6c 74 0d 69 66 | 20 69 74 20 69 73 20 6e |esult.if| it is n|
|000029a0| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 69 66 |ot empty| then.if|
|000029b0| 20 69 74 20 69 73 20 22 | 43 61 6e 27 74 20 73 74 | it is "|Can't st|
|000029c0| 61 72 74 20 75 73 69 6e | 67 20 68 6f 6d 65 2e 22 |art usin|g home."|
|000029d0| 20 74 68 65 6e 20 65 78 | 69 74 20 75 73 65 53 74 | then ex|it useSt|
|000029e0| 61 63 6b 20 2d 2d 20 c6 | 0d 61 6e 73 77 65 72 20 |ack -- .|.answer |
|000029f0| 69 74 0d 65 78 69 74 20 | 74 6f 20 68 79 70 65 72 |it.exit |to hyper|
|00002a00| 43 61 72 64 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |Card.end| if.end |
|00002a10| 69 66 0d 65 6e 64 20 75 | 73 65 53 74 61 63 6b 0d |if.end u|seStack.|
|00002a20| 0d 0d 6f 6e 20 72 65 6d | 6f 76 65 50 69 63 74 20 |..on rem|ovePict |
|00002a30| 77 68 61 74 50 69 63 74 | 0d 2d 2d 20 64 65 6c 65 |whatPict|.-- dele|
|00002a40| 74 65 20 61 20 72 65 73 | 6f 75 72 63 65 20 66 72 |te a res|ource fr|
|00002a50| 6f 6d 20 61 6e 6f 74 68 | 65 72 20 73 74 61 63 6b |om anoth|er stack|
|00002a60| 0d 67 6c 6f 62 61 6c 20 | 46 69 6c 65 4e 61 6d 65 |.global |FileName|
|00002a70| 2c 52 65 73 49 6e 66 6f | 0d 61 6e 73 77 65 72 20 |,ResInfo|.answer |
|00002a80| 22 52 65 6d 6f 76 65 20 | 50 49 43 54 20 22 20 26 |"Remove |PICT " &|
|00002a90| 20 77 6f 72 64 20 33 20 | 74 6f 20 28 74 68 65 20 | word 3 |to (the |
|00002aa0| 6e 75 6d 62 65 72 20 6f | 66 20 77 6f 72 64 73 20 |number o|f words |
|00002ab0| 6f 66 20 77 68 61 74 50 | 69 63 74 29 20 6f 66 20 |of whatP|ict) of |
|00002ac0| 77 68 61 74 50 69 63 74 | 20 26 20 22 3f 22 20 77 |whatPict| & "?" w|
|00002ad0| 69 74 68 20 22 4f 4b 22 | 20 6f 72 20 22 43 61 6e |ith "OK"| or "Can|
|00002ae0| 63 65 6c 22 20 2d 2d 20 | c6 0d 69 66 20 69 74 20 |cel" -- |..if it |
|00002af0| 69 73 20 22 43 61 6e 63 | 65 6c 22 20 74 68 65 6e |is "Canc|el" then|
|00002b00| 20 65 78 69 74 20 72 65 | 6d 6f 76 65 50 69 63 74 | exit re|movePict|
|00002b10| 20 2d 2d 20 c6 0d 6c 6f | 63 6b 20 73 63 72 65 65 | -- ..lo|ck scree|
|00002b20| 6e 0d 73 65 74 20 63 75 | 72 73 6f 72 20 74 6f 20 |n.set cu|rsor to |
|00002b30| 77 61 74 63 68 0d 52 65 | 73 52 65 6d 6f 76 65 20 |watch.Re|sRemove |
|00002b40| 46 69 6c 65 4e 61 6d 65 | 2c 74 68 65 52 65 73 54 |FileName|,theResT|
|00002b50| 79 70 65 28 77 68 61 74 | 50 69 63 74 29 2c 74 68 |ype(what|Pict),th|
|00002b60| 65 52 65 73 49 44 28 77 | 68 61 74 50 69 63 74 29 |eResID(w|hatPict)|
|00002b70| 0d 70 75 74 20 74 68 65 | 20 72 65 73 75 6c 74 20 |.put the| result |
|00002b80| 69 6e 74 6f 20 74 68 65 | 52 65 73 75 6c 74 0d 69 |into the|Result.i|
|00002b90| 66 20 74 68 65 52 65 73 | 75 6c 74 20 69 73 20 6e |f theRes|ult is n|
|00002ba0| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 20 61 6e |ot empty| then an|
|00002bb0| 73 77 65 72 20 74 68 65 | 52 65 73 75 6c 74 0d 75 |swer the|Result.u|
|00002bc0| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 65 6e 64 |nlock sc|reen.end|
|00002bd0| 20 72 65 6d 6f 76 65 50 | 69 63 74 0d 0d 0d 66 75 | removeP|ict...fu|
|00002be0| 6e 63 74 69 6f 6e 20 74 | 68 65 52 65 73 54 79 70 |nction t|heResTyp|
|00002bf0| 65 20 72 65 73 49 6e 66 | 6f 0d 2d 2d 20 72 65 74 |e resInf|o.-- ret|
|00002c00| 75 72 6e 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 |urn the |resource|
|00002c10| 20 74 79 70 65 20 6f 66 | 20 74 68 65 20 72 65 73 | type of| the res|
|00002c20| 6f 75 72 63 65 0d 69 66 | 20 74 68 65 20 6e 75 6d |ource.if| the num|
|00002c30| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 69 6e 20 |ber of c|hars in |
|00002c40| 77 6f 72 64 20 31 20 6f | 66 20 72 65 73 49 6e 66 |word 1 o|f resInf|
|00002c50| 6f 20 3d 20 33 0d 74 68 | 65 6e 20 72 65 74 75 72 |o = 3.th|en retur|
|00002c60| 6e 20 77 6f 72 64 20 31 | 20 6f 66 20 72 65 73 49 |n word 1| of resI|
|00002c70| 6e 66 6f 20 26 20 73 70 | 61 63 65 0d 65 6c 73 65 |nfo & sp|ace.else|
|00002c80| 20 72 65 74 75 72 6e 20 | 77 6f 72 64 20 31 20 6f | return |word 1 o|
|00002c90| 66 20 72 65 73 49 6e 66 | 6f 0d 65 6e 64 20 74 68 |f resInf|o.end th|
|00002ca0| 65 52 65 73 54 79 70 65 | 0d 0d 66 75 6e 63 74 69 |eResType|..functi|
|00002cb0| 6f 6e 20 74 68 65 52 65 | 73 49 44 20 72 65 73 49 |on theRe|sID resI|
|00002cc0| 6e 66 6f 0d 2d 2d 20 72 | 65 74 75 72 6e 20 74 68 |nfo.-- r|eturn th|
|00002cd0| 65 20 49 44 20 6f 66 20 | 74 68 65 20 72 65 73 6f |e ID of |the reso|
|00002ce0| 75 72 63 65 0d 72 65 74 | 75 72 6e 20 77 6f 72 64 |urce.ret|urn word|
|00002cf0| 20 32 20 6f 66 20 72 65 | 73 49 6e 66 6f 0d 65 6e | 2 of re|sInfo.en|
|00002d00| 64 20 74 68 65 52 65 73 | 49 44 0d 0d 6f 6e 20 63 |d theRes|ID..on c|
|00002d10| 72 65 61 74 65 43 6f 6e | 74 65 6e 74 73 0d 69 66 |reateCon|tents.if|
|00002d20| 20 74 6f 6f 6c 73 53 74 | 61 63 6b 28 29 20 74 68 | toolsSt|ack() th|
|00002d30| 65 6e 20 65 78 69 74 20 | 63 72 65 61 74 65 43 6f |en exit |createCo|
|00002d40| 6e 74 65 6e 74 73 0d 6c | 6f 63 6b 20 73 63 72 65 |ntents.l|ock scre|
|00002d50| 65 6e 0d 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |en.lock |messages|
|00002d60| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00002d70| 69 6e 64 6f 77 20 28 69 | 74 65 6d 20 31 20 6f 66 |indow (i|tem 1 of|
|00002d80| 20 66 6c 64 20 22 50 69 | 63 74 54 68 69 73 50 61 | fld "Pi|ctThisPa|
|00002d90| 67 65 22 29 20 74 68 65 | 6e 0d 63 6c 6f 73 65 20 |ge") the|n.close |
|00002da0| 77 69 6e 64 6f 77 20 28 | 69 74 65 6d 20 31 20 6f |window (|item 1 o|
|00002db0| 66 20 66 6c 64 20 22 50 | 69 63 74 54 68 69 73 50 |f fld "P|ictThisP|
|00002dc0| 61 67 65 22 29 0d 65 6e | 64 20 69 66 0d 70 75 74 |age").en|d if.put|
|00002dd0| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 6f 6c 64 43 | empty i|nto oldC|
|00002de0| 68 61 70 4e 61 6d 65 0d | 72 65 70 65 61 74 20 77 |hapName.|repeat w|
|00002df0| 69 74 68 20 78 20 3d 20 | 31 20 74 6f 20 28 74 68 |ith x = |1 to (th|
|00002e00| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 64 73 20 |e number| of cds |
|00002e10| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 29 0d 67 |of this |stack).g|
|00002e20| 6f 20 63 64 20 78 0d 69 | 66 20 66 6c 64 20 22 41 |o cd x.i|f fld "A|
|00002e30| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 73 20 65 |rticleNa|me" is e|
|00002e40| 6d 74 70 79 20 6f 72 20 | 66 6c 64 20 22 41 72 74 |mtpy or |fld "Art|
|00002e50| 69 63 6c 65 4e 61 6d 65 | 22 20 69 73 20 22 22 20 |icleName|" is "" |
|00002e60| 6f 72 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |or fld "|ArticleN|
|00002e70| 61 6d 65 22 20 69 73 20 | 22 54 61 62 6c 65 20 6f |ame" is |"Table o|
|00002e80| 66 20 43 6f 6e 74 65 6e | 74 73 22 20 74 68 65 6e |f Conten|ts" then|
|00002e90| 20 6e 65 78 74 20 72 65 | 70 65 61 74 0d 70 75 74 | next re|peat.put|
|00002ea0| 20 66 6c 64 20 22 41 72 | 74 69 63 6c 65 4e 61 6d | fld "Ar|ticleNam|
|00002eb0| 65 22 20 69 6e 74 6f 20 | 6e 65 77 43 68 61 70 4e |e" into |newChapN|
|00002ec0| 61 6d 65 0d 69 66 20 6e | 65 77 43 68 61 70 4e 61 |ame.if n|ewChapNa|
|00002ed0| 6d 65 20 ad 20 6f 6c 64 | 43 68 61 70 4e 61 6d 65 |me . old|ChapName|
|00002ee0| 20 74 68 65 6e 0d 69 66 | 20 6f 6c 64 43 68 61 70 | then.if| oldChap|
|00002ef0| 4e 61 6d 65 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |Name is |not empt|
|00002f00| 79 20 74 68 65 6e 0d 70 | 75 74 20 6f 6c 64 43 68 |y then.p|ut oldCh|
|00002f10| 61 70 4e 61 6d 65 20 26 | 20 72 65 74 75 72 6e 20 |apName &| return |
|00002f20| 61 66 74 65 72 20 63 68 | 61 70 4e 61 6d 65 73 0d |after ch|apNames.|
|00002f30| 70 75 74 20 6f 6c 64 50 | 61 67 65 4e 75 6d 20 26 |put oldP|ageNum &|
|00002f40| 20 72 65 74 75 72 6e 20 | 61 66 74 65 72 20 70 61 | return |after pa|
|00002f50| 67 65 4e 75 6d 73 0d 65 | 6e 64 20 69 66 0d 70 75 |geNums.e|nd if.pu|
|00002f60| 74 20 6e 65 77 43 68 61 | 70 4e 61 6d 65 20 69 6e |t newCha|pName in|
|00002f70| 74 6f 20 6f 6c 64 43 68 | 61 70 4e 61 6d 65 0d 70 |to oldCh|apName.p|
|00002f80| 75 74 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ut the n|umber of|
|00002f90| 20 74 68 69 73 20 63 64 | 20 69 6e 74 6f 20 6f 6c | this cd| into ol|
|00002fa0| 64 50 61 67 65 4e 75 6d | 0d 65 6e 64 20 69 66 0d |dPageNum|.end if.|
|00002fb0| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 6f |end repe|at.put o|
|00002fc0| 6c 64 43 68 61 70 4e 61 | 6d 65 20 26 20 72 65 74 |ldChapNa|me & ret|
|00002fd0| 75 72 6e 20 61 66 74 65 | 72 20 63 68 61 70 4e 61 |urn afte|r chapNa|
|00002fe0| 6d 65 73 0d 70 75 74 20 | 6f 6c 64 50 61 67 65 4e |mes.put |oldPageN|
|00002ff0| 75 6d 20 26 20 72 65 74 | 75 72 6e 20 61 66 74 65 |um & ret|urn afte|
|00003000| 72 20 70 61 67 65 4e 75 | 6d 73 0d 61 72 74 69 63 |r pageNu|ms.artic|
|00003010| 6c 65 43 6f 75 6e 74 20 | 63 68 61 70 4e 61 6d 65 |leCount |chapName|
|00003020| 73 2c 70 61 67 65 4e 75 | 6d 73 0d 65 6e 64 20 63 |s,pageNu|ms.end c|
|00003030| 72 65 61 74 65 43 6f 6e | 74 65 6e 74 73 0d 0d 6f |reateCon|tents..o|
|00003040| 6e 20 61 72 74 69 63 6c | 65 43 6f 75 6e 74 20 63 |n articl|eCount c|
|00003050| 68 61 70 4e 61 6d 65 73 | 2c 70 61 67 65 4e 75 6d |hapNames|,pageNum|
|00003060| 73 0d 70 75 74 20 74 68 | 65 20 6e 75 6d 62 65 72 |s.put th|e number|
|00003070| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 63 68 61 | of line|s of cha|
|00003080| 70 4e 61 6d 65 73 20 69 | 6e 74 6f 20 6c 69 6e 65 |pNames i|nto line|
|00003090| 73 0d 69 66 20 6c 69 6e | 65 73 20 3c 20 39 20 74 |s.if lin|es < 9 t|
|000030a0| 68 65 6e 0d 70 75 74 20 | 31 20 69 6e 74 6f 20 63 |hen.put |1 into c|
|000030b0| 6f 6c 73 0d 70 75 74 20 | 32 38 20 69 6e 74 6f 20 |ols.put |28 into |
|000030c0| 68 65 69 67 68 74 0d 70 | 75 74 20 31 34 20 69 6e |height.p|ut 14 in|
|000030d0| 74 6f 20 73 69 7a 65 0d | 65 6c 73 65 20 70 75 74 |to size.|else put|
|000030e0| 20 32 20 69 6e 74 6f 20 | 63 6f 6c 73 0d 69 66 20 | 2 into |cols.if |
|000030f0| 6c 69 6e 65 73 20 3e 20 | 38 20 61 6e 64 20 6c 69 |lines > |8 and li|
|00003100| 6e 65 73 20 3c 20 31 37 | 20 74 68 65 6e 0d 70 75 |nes < 17| then.pu|
|00003110| 74 20 32 38 20 69 6e 74 | 6f 20 68 65 69 67 68 74 |t 28 int|o height|
|00003120| 0d 70 75 74 20 31 34 20 | 69 6e 74 6f 20 73 69 7a |.put 14 |into siz|
|00003130| 65 0d 65 6e 64 20 69 66 | 0d 69 66 20 6c 69 6e 65 |e.end if|.if line|
|00003140| 73 20 3e 20 31 36 20 61 | 6e 64 20 6c 69 6e 65 73 |s > 16 a|nd lines|
|00003150| 20 3c 20 32 35 20 74 68 | 65 6e 0d 70 75 74 20 32 | < 25 th|en.put 2|
|00003160| 30 20 69 6e 74 6f 20 68 | 65 69 67 68 74 0d 70 75 |0 into h|eight.pu|
|00003170| 74 20 31 34 20 69 6e 74 | 6f 20 73 69 7a 65 0d 65 |t 14 int|o size.e|
|00003180| 6e 64 20 69 66 0d 69 66 | 20 6c 69 6e 65 73 20 3e |nd if.if| lines >|
|00003190| 20 32 34 20 61 6e 64 20 | 6c 69 6e 65 73 20 3c 20 | 24 and |lines < |
|000031a0| 32 39 20 74 68 65 6e 0d | 70 75 74 20 31 36 20 69 |29 then.|put 16 i|
|000031b0| 6e 74 6f 20 68 65 69 67 | 68 74 0d 70 75 74 20 31 |nto heig|ht.put 1|
|000031c0| 34 20 69 6e 74 6f 20 73 | 69 7a 65 0d 65 6e 64 20 |4 into s|ize.end |
|000031d0| 69 66 0d 69 66 20 6c 69 | 6e 65 73 20 3e 20 32 38 |if.if li|nes > 28|
|000031e0| 20 74 68 65 6e 0d 70 75 | 74 20 31 34 20 69 6e 74 | then.pu|t 14 int|
|000031f0| 6f 20 68 65 69 67 68 74 | 0d 70 75 74 20 31 32 20 |o height|.put 12 |
|00003200| 69 6e 74 6f 20 73 69 7a | 65 0d 65 6e 64 20 69 66 |into siz|e.end if|
|00003210| 0d 69 66 20 6c 69 6e 65 | 73 20 3e 20 33 36 20 74 |.if line|s > 36 t|
|00003220| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 54 68 65 72 |hen.answ|er "Ther|
|00003230| 65 20 61 72 65 20 74 6f | 6f 20 6d 61 6e 79 20 61 |e are to|o many a|
|00003240| 72 74 69 63 6c 65 73 20 | 74 6f 20 66 69 74 20 69 |rticles |to fit i|
|00003250| 6e 20 74 68 65 20 54 61 | 62 6c 65 20 6f 66 20 43 |n the Ta|ble of C|
|00003260| 6f 6e 74 65 6e 74 73 2e | 20 53 6f 6d 65 20 77 69 |ontents.| Some wi|
|00003270| 6c 6c 20 6e 6f 74 20 61 | 70 70 65 61 72 2e 22 0d |ll not a|ppear.".|
|00003280| 65 6e 64 20 69 66 0d 6d | 61 6b 65 54 61 62 6c 65 |end if.m|akeTable|
|00003290| 20 63 68 61 70 4e 61 6d | 65 73 2c 70 61 67 65 4e | chapNam|es,pageN|
|000032a0| 75 6d 73 2c 6c 69 6e 65 | 73 2c 63 6f 6c 73 2c 73 |ums,line|s,cols,s|
|000032b0| 69 7a 65 2c 68 65 69 67 | 68 74 2c 77 61 72 6e 69 |ize,heig|ht,warni|
|000032c0| 6e 67 0d 65 6e 64 20 61 | 72 74 69 63 6c 65 43 6f |ng.end a|rticleCo|
|000032d0| 75 6e 74 0d 0d 0d 6f 6e | 20 73 65 74 46 6f 6e 74 |unt...on| setFont|
|000032e0| 0d 61 6e 73 77 65 72 20 | 22 43 68 61 6e 67 69 6e |.answer |"Changin|
|000032f0| 67 20 74 68 65 20 6d 61 | 67 61 7a 69 6e 65 20 74 |g the ma|gazine t|
|00003300| 65 78 74 20 66 6f 6e 74 | 20 63 68 61 6e 67 65 73 |ext font| changes|
|00003310| 20 74 68 65 20 66 6f 6e | 74 20 6f 6e 20 61 6c 6c | the fon|t on all|
|00003320| 20 70 61 67 65 73 2e 22 | 20 77 69 74 68 20 22 43 | pages."| with "C|
|00003330| 61 6e 63 65 6c 22 20 6f | 72 20 22 4f 4b 22 0d 69 |ancel" o|r "OK".i|
|00003340| 66 20 69 74 20 69 73 20 | 22 4f 4b 22 20 74 68 65 |f it is |"OK" the|
|00003350| 6e 0d 70 75 74 20 6c 69 | 73 74 49 6e 73 74 61 6c |n.put li|stInstal|
|00003360| 6c 65 64 46 6f 6e 74 73 | 28 29 20 69 6e 74 6f 20 |ledFonts|() into |
|00003370| 66 6f 6e 74 4c 69 73 74 | 0d 67 65 74 20 73 68 6f |fontList|.get sho|
|00003380| 77 4c 69 73 74 28 66 6f | 6e 74 4c 69 73 74 2c 22 |wList(fo|ntList,"|
|00003390| 53 65 6c 65 63 74 20 4d | 61 67 61 7a 69 6e 65 20 |Select M|agazine |
|000033a0| 46 6f 6e 74 22 2c 74 72 | 75 65 2c 66 61 6c 73 65 |Font",tr|ue,false|
|000033b0| 2c 22 53 65 6c 65 63 74 | 2c 43 61 6e 63 65 6c 22 |,"Select|,Cancel"|
|000033c0| 2c 31 29 0d 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |,1).if l|ine 1 of|
|000033d0| 20 69 74 20 69 73 20 22 | 53 65 6c 65 63 74 22 20 | it is "|Select" |
|000033e0| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 74 65 78 |then.set| the tex|
|000033f0| 74 46 6f 6e 74 20 6f 66 | 20 66 6c 64 20 22 42 6f |tFont of| fld "Bo|
|00003400| 64 79 22 20 74 6f 20 6c | 69 6e 65 20 28 6c 69 6e |dy" to l|ine (lin|
|00003410| 65 20 32 20 6f 66 20 69 | 74 29 20 6f 66 20 66 6f |e 2 of i|t) of fo|
|00003420| 6e 74 4c 69 73 74 0d 65 | 6e 64 20 69 66 0d 65 6e |ntList.e|nd if.en|
|00003430| 64 20 69 66 0d 65 6e 64 | 20 73 65 74 46 6f 6e 74 |d if.end| setFont|
|00003440| 0d 0d 6f 6e 20 73 65 74 | 53 69 7a 65 0d 61 6e 73 |..on set|Size.ans|
|00003450| 77 65 72 20 22 43 68 61 | 6e 67 69 6e 67 20 74 68 |wer "Cha|nging th|
|00003460| 65 20 6d 61 67 61 7a 69 | 6e 65 20 74 65 78 74 20 |e magazi|ne text |
|00003470| 73 69 7a 65 20 63 68 61 | 6e 67 65 73 20 74 68 65 |size cha|nges the|
|00003480| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 74 65 78 | size of| the tex|
|00003490| 74 20 6f 6e 20 61 6c 6c | 20 70 61 67 65 73 2e 22 |t on all| pages."|
|000034a0| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|000034b0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|000034c0| 22 4f 4b 22 20 74 68 65 | 6e 0d 70 75 74 20 74 68 |"OK" the|n.put th|
|000034d0| 65 20 74 65 78 74 48 65 | 69 67 68 74 20 6f 66 20 |e textHe|ight of |
|000034e0| 66 6c 64 20 22 42 6f 64 | 79 22 20 69 6e 74 6f 20 |fld "Bod|y" into |
|000034f0| 6f 6c 64 4c 65 61 64 0d | 70 75 74 20 22 31 30 22 |oldLead.|put "10"|
|00003500| 20 26 20 72 65 74 75 72 | 6e 20 26 20 22 31 32 22 | & retur|n & "12"|
|00003510| 20 26 20 72 65 74 75 72 | 6e 20 26 20 22 31 34 22 | & retur|n & "14"|
|00003520| 20 69 6e 74 6f 20 66 6f | 6e 74 53 69 7a 65 73 0d | into fo|ntSizes.|
|00003530| 67 65 74 20 73 68 6f 77 | 4c 69 73 74 28 66 6f 6e |get show|List(fon|
|00003540| 74 53 69 7a 65 73 2c 22 | 53 65 6c 65 63 74 20 4d |tSizes,"|Select M|
|00003550| 61 67 61 7a 69 6e 65 20 | 54 65 78 74 20 53 69 7a |agazine |Text Siz|
|00003560| 65 22 2c 74 72 75 65 2c | 66 61 6c 73 65 2c 22 53 |e",true,|false,"S|
|00003570| 65 6c 65 63 74 2c 43 61 | 6e 63 65 6c 22 2c 31 29 |elect,Ca|ncel",1)|
|00003580| 0d 69 66 20 6c 69 6e 65 | 20 31 20 6f 66 20 69 74 |.if line| 1 of it|
|00003590| 20 69 73 20 22 53 65 6c | 65 63 74 22 20 74 68 65 | is "Sel|ect" the|
|000035a0| 6e 0d 73 65 74 20 74 68 | 65 20 74 65 78 74 53 69 |n.set th|e textSi|
|000035b0| 7a 65 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |ze of fl|d "Body"|
|000035c0| 20 74 6f 20 6c 69 6e 65 | 20 28 6c 69 6e 65 20 32 | to line| (line 2|
|000035d0| 20 6f 66 20 69 74 29 20 | 6f 66 20 66 6f 6e 74 53 | of it) |of fontS|
|000035e0| 69 7a 65 73 0d 73 65 74 | 20 74 68 65 20 74 65 78 |izes.set| the tex|
|000035f0| 74 48 65 69 67 68 74 20 | 6f 66 20 66 6c 64 20 22 |tHeight |of fld "|
|00003600| 42 6f 64 79 22 20 74 6f | 20 6f 6c 64 4c 65 61 64 |Body" to| oldLead|
|00003610| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|00003620| 6e 64 20 73 65 74 53 69 | 7a 65 0d 0d 6f 6e 20 73 |nd setSi|ze..on s|
|00003630| 65 74 4c 65 61 64 0d 61 | 6e 73 77 65 72 20 22 43 |etLead.a|nswer "C|
|00003640| 68 61 6e 67 69 6e 67 20 | 74 68 65 20 6d 61 67 61 |hanging |the maga|
|00003650| 7a 69 6e 65 20 74 65 78 | 74 20 6c 65 61 64 69 6e |zine tex|t leadin|
|00003660| 67 20 63 68 61 6e 67 65 | 73 20 74 68 65 20 6c 65 |g change|s the le|
|00003670| 61 64 69 6e 67 20 6f 66 | 20 74 68 65 20 74 65 78 |ading of| the tex|
|00003680| 74 20 6f 6e 20 61 6c 6c | 20 70 61 67 65 73 2e 22 |t on all| pages."|
|00003690| 20 77 69 74 68 20 22 43 | 61 6e 63 65 6c 22 20 6f | with "C|ancel" o|
|000036a0| 72 20 22 4f 4b 22 0d 69 | 66 20 69 74 20 69 73 20 |r "OK".i|f it is |
|000036b0| 22 4f 4b 22 20 74 68 65 | 6e 0d 70 75 74 20 22 31 |"OK" the|n.put "1|
|000036c0| 32 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |2" & ret|urn & "1|
|000036d0| 34 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |4" & ret|urn & "1|
|000036e0| 36 22 20 26 20 72 65 74 | 75 72 6e 20 26 20 22 31 |6" & ret|urn & "1|
|000036f0| 38 22 20 69 6e 74 6f 20 | 66 6f 6e 74 4c 65 61 64 |8" into |fontLead|
|00003700| 73 0d 67 65 74 20 73 68 | 6f 77 4c 69 73 74 28 66 |s.get sh|owList(f|
|00003710| 6f 6e 74 4c 65 61 64 73 | 2c 22 53 65 6c 65 63 74 |ontLeads|,"Select|
|00003720| 20 4d 61 67 61 7a 69 6e | 65 20 54 65 78 74 20 4c | Magazin|e Text L|
|00003730| 65 61 64 69 6e 67 22 2c | 74 72 75 65 2c 66 61 6c |eading",|true,fal|
|00003740| 73 65 2c 22 53 65 6c 65 | 63 74 2c 43 61 6e 63 65 |se,"Sele|ct,Cance|
|00003750| 6c 22 2c 31 29 0d 69 66 | 20 6c 69 6e 65 20 31 20 |l",1).if| line 1 |
|00003760| 6f 66 20 69 74 20 69 73 | 20 22 53 65 6c 65 63 74 |of it is| "Select|
|00003770| 22 20 74 68 65 6e 0d 73 | 65 74 20 74 68 65 20 74 |" then.s|et the t|
|00003780| 65 78 74 48 65 69 67 68 | 74 20 6f 66 20 66 6c 64 |extHeigh|t of fld|
|00003790| 20 22 42 6f 64 79 22 20 | 74 6f 20 6c 69 6e 65 20 | "Body" |to line |
|000037a0| 28 6c 69 6e 65 20 32 20 | 6f 66 20 69 74 29 20 6f |(line 2 |of it) o|
|000037b0| 66 20 66 6f 6e 74 4c 65 | 61 64 73 0d 65 6e 64 20 |f fontLe|ads.end |
|000037c0| 69 66 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 73 65 |if.end i|f.end se|
|000037d0| 74 4c 65 61 64 0d 0d 6f | 6e 20 6d 61 6b 65 49 6e |tLead..o|n makeIn|
|000037e0| 64 65 6e 74 0d 69 66 20 | 74 68 65 20 73 65 6c 65 |dent.if |the sele|
|000037f0| 63 74 65 64 43 68 75 6e | 6b 20 69 73 20 65 6d 70 |ctedChun|k is emp|
|00003800| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 6d 61 6b |ty then |exit mak|
|00003810| 65 49 6e 64 65 6e 74 0d | 70 75 74 20 77 6f 72 64 |eIndent.|put word|
|00003820| 20 32 20 6f 66 20 74 68 | 65 20 73 65 6c 65 63 74 | 2 of th|e select|
|00003830| 65 64 43 68 75 6e 6b 20 | 69 6e 74 6f 20 63 6c 69 |edChunk |into cli|
|00003840| 63 6b 43 68 61 72 0d 70 | 75 74 20 74 61 62 20 26 |ckChar.p|ut tab &|
|00003850| 20 74 61 62 20 26 20 74 | 61 62 20 26 20 74 61 62 | tab & t|ab & tab|
|00003860| 20 26 20 74 61 62 20 26 | 20 74 61 62 20 62 65 66 | & tab &| tab bef|
|00003870| 6f 72 65 20 74 68 65 20 | 73 65 6c 65 63 74 65 64 |ore the |selected|
|00003880| 4c 69 6e 65 0d 73 65 6c | 65 63 74 20 62 65 66 6f |Line.sel|ect befo|
|00003890| 72 65 20 63 68 61 72 20 | 63 6c 69 63 6b 43 68 61 |re char |clickCha|
|000038a0| 72 20 2b 20 36 20 6f 66 | 20 66 6c 64 20 22 42 6f |r + 6 of| fld "Bo|
|000038b0| 64 79 22 0d 65 6e 64 20 | 6d 61 6b 65 49 6e 64 65 |dy".end |makeInde|
|000038c0| 6e 74 0d 0d 6f 6e 20 64 | 65 6c 65 74 65 49 6e 64 |nt..on d|eleteInd|
|000038d0| 65 6e 74 0d 70 75 74 20 | 31 20 69 6e 74 6f 20 78 |ent.put |1 into x|
|000038e0| 0d 70 75 74 20 77 6f 72 | 64 20 32 20 6f 66 20 74 |.put wor|d 2 of t|
|000038f0| 68 65 20 73 65 6c 65 63 | 74 65 64 4c 69 6e 65 20 |he selec|tedLine |
|00003900| 69 6e 74 6f 20 63 6c 69 | 63 6b 48 65 72 65 0d 70 |into cli|ckHere.p|
|00003910| 75 74 20 77 6f 72 64 20 | 32 20 6f 66 20 74 68 65 |ut word |2 of the|
|00003920| 20 73 65 6c 65 63 74 65 | 64 43 68 75 6e 6b 20 69 | selecte|dChunk i|
|00003930| 6e 74 6f 20 63 6c 69 63 | 6b 43 68 61 72 0d 72 65 |nto clic|kChar.re|
|00003940| 70 65 61 74 0d 69 66 20 | 63 68 61 72 20 78 20 6f |peat.if |char x o|
|00003950| 66 20 6c 69 6e 65 20 63 | 6c 69 63 6b 48 65 72 65 |f line c|lickHere|
|00003960| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 20 69 | of fld |"Body" i|
|00003970| 73 20 22 20 22 20 74 68 | 65 6e 0d 61 64 64 20 31 |s " " th|en.add 1|
|00003980| 20 74 6f 20 78 0d 65 6c | 73 65 0d 65 78 69 74 20 | to x.el|se.exit |
|00003990| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 65 6e |repeat.e|nd if.en|
|000039a0| 64 20 72 65 70 65 61 74 | 0d 69 66 20 63 68 61 72 |d repeat|.if char|
|000039b0| 20 78 20 74 6f 20 78 20 | 2b 20 35 20 6f 66 20 6c | x to x |+ 5 of l|
|000039c0| 69 6e 65 20 63 6c 69 63 | 6b 48 65 72 65 20 6f 66 |ine clic|kHere of|
|000039d0| 20 66 6c 64 20 22 42 6f | 64 79 22 20 69 73 20 28 | fld "Bo|dy" is (|
|000039e0| 74 61 62 20 26 20 74 61 | 62 20 26 20 74 61 62 20 |tab & ta|b & tab |
|000039f0| 26 20 74 61 62 20 26 20 | 74 61 62 20 26 20 74 61 |& tab & |tab & ta|
|00003a00| 62 29 20 74 68 65 6e 0d | 70 75 74 20 65 6d 70 74 |b) then.|put empt|
|00003a10| 79 20 69 6e 74 6f 20 63 | 68 61 72 20 78 20 74 6f |y into c|har x to|
|00003a20| 20 78 20 2b 20 35 20 6f | 66 20 6c 69 6e 65 20 63 | x + 5 o|f line c|
|00003a30| 6c 69 63 6b 48 65 72 65 | 20 6f 66 20 66 6c 64 20 |lickHere| of fld |
|00003a40| 22 42 6f 64 79 22 0d 73 | 65 6c 65 63 74 20 62 65 |"Body".s|elect be|
|00003a50| 66 6f 72 65 20 63 68 61 | 72 20 63 6c 69 63 6b 43 |fore cha|r clickC|
|00003a60| 68 61 72 20 2d 20 36 20 | 6f 66 20 66 6c 64 20 22 |har - 6 |of fld "|
|00003a70| 42 6f 64 79 22 0d 65 6c | 73 65 0d 73 65 6c 65 63 |Body".el|se.selec|
|00003a80| 74 20 62 65 66 6f 72 65 | 20 63 68 61 72 20 63 6c |t before| char cl|
|00003a90| 69 63 6b 43 68 61 72 20 | 6f 66 20 66 6c 64 20 22 |ickChar |of fld "|
|00003aa0| 42 6f 64 79 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |Body".en|d if.end|
|00003ab0| 20 64 65 6c 65 74 65 49 | 6e 64 65 6e 74 0d 0d 0d | deleteI|ndent...|
|00003ac0| 6f 6e 20 6d 61 6b 65 54 | 61 62 6c 65 20 63 68 61 |on makeT|able cha|
|00003ad0| 70 4e 61 6d 65 73 2c 70 | 61 67 65 4e 75 6d 73 2c |pNames,p|ageNums,|
|00003ae0| 6c 69 6e 65 73 2c 63 6f | 6c 73 2c 73 69 7a 65 2c |lines,co|ls,size,|
|00003af0| 68 65 69 67 68 74 2c 77 | 61 72 6e 69 6e 67 0d 67 |height,w|arning.g|
|00003b00| 6f 20 63 64 20 22 54 61 | 62 6c 65 20 6f 66 20 43 |o cd "Ta|ble of C|
|00003b10| 6f 6e 74 65 6e 74 73 22 | 0d 70 75 74 20 22 54 61 |ontents"|.put "Ta|
|00003b20| 62 6c 65 31 2c 54 61 62 | 6c 65 32 2c 50 61 67 65 |ble1,Tab|le2,Page|
|00003b30| 31 2c 50 61 67 65 32 22 | 20 69 6e 74 6f 20 66 6c |1,Page2"| into fl|
|00003b40| 64 49 74 65 6d 73 0d 72 | 65 70 65 61 74 20 77 69 |dItems.r|epeat wi|
|00003b50| 74 68 20 79 20 3d 20 31 | 20 74 6f 20 34 0d 70 75 |th y = 1| to 4.pu|
|00003b60| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 63 64 20 |t empty |into cd |
|00003b70| 66 6c 64 20 28 69 74 65 | 6d 20 79 20 6f 66 20 66 |fld (ite|m y of f|
|00003b80| 6c 64 49 74 65 6d 73 29 | 0d 65 6e 64 20 72 65 70 |ldItems)|.end rep|
|00003b90| 65 61 74 0d 69 66 20 63 | 6f 6c 73 20 3d 20 31 20 |eat.if c|ols = 1 |
|00003ba0| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 72 65 63 |then.set| the rec|
|00003bb0| 74 20 6f 66 20 63 64 20 | 66 6c 64 20 22 54 61 62 |t of cd |fld "Tab|
|00003bc0| 6c 65 31 22 20 74 6f 20 | 22 39 31 2c 35 39 2c 33 |le1" to |"91,59,3|
|00003bd0| 37 30 2c 33 32 36 22 0d | 73 65 74 20 74 68 65 20 |70,326".|set the |
|00003be0| 72 65 63 74 20 6f 66 20 | 63 64 20 66 6c 64 20 22 |rect of |cd fld "|
|00003bf0| 50 61 67 65 31 22 20 74 | 6f 20 22 33 37 30 2c 35 |Page1" t|o "370,5|
|00003c00| 39 2c 34 31 30 2c 33 32 | 36 22 0d 70 75 74 20 22 |9,410,32|6".put "|
|00003c10| 22 20 69 6e 74 6f 20 63 | 64 20 66 6c 64 20 22 54 |" into c|d fld "T|
|00003c20| 61 62 6c 65 32 22 0d 65 | 6c 73 65 0d 73 65 74 20 |able2".e|lse.set |
|00003c30| 74 68 65 20 72 65 63 74 | 20 6f 66 20 63 64 20 66 |the rect| of cd f|
|00003c40| 6c 64 20 22 54 61 62 6c | 65 31 22 20 74 6f 20 22 |ld "Tabl|e1" to "|
|00003c50| 39 31 2c 35 39 2c 32 35 | 34 2c 33 32 36 22 0d 73 |91,59,25|4,326".s|
|00003c60| 65 74 20 74 68 65 20 72 | 65 63 74 20 6f 66 20 63 |et the r|ect of c|
|00003c70| 64 20 66 6c 64 20 22 50 | 61 67 65 31 22 20 74 6f |d fld "P|age1" to|
|00003c80| 20 22 32 35 34 2c 35 39 | 2c 32 39 34 2c 33 32 36 | "254,59|,294,326|
|00003c90| 22 0d 65 6e 64 20 69 66 | 0d 72 65 70 65 61 74 20 |".end if|.repeat |
|00003ca0| 77 69 74 68 20 79 20 3d | 20 31 20 74 6f 20 34 0d |with y =| 1 to 4.|
|00003cb0| 73 65 74 20 74 68 65 20 | 74 65 78 74 53 69 7a 65 |set the |textSize|
|00003cc0| 20 6f 66 20 63 64 20 66 | 6c 64 20 28 69 74 65 6d | of cd f|ld (item|
|00003cd0| 20 79 20 6f 66 20 66 6c | 64 49 74 65 6d 73 29 20 | y of fl|dItems) |
|00003ce0| 74 6f 20 73 69 7a 65 0d | 73 65 74 20 74 68 65 20 |to size.|set the |
|00003cf0| 74 65 78 74 48 65 69 67 | 68 74 20 6f 66 20 63 64 |textHeig|ht of cd|
|00003d00| 20 66 6c 64 20 28 69 74 | 65 6d 20 79 20 6f 66 20 | fld (it|em y of |
|00003d10| 66 6c 64 49 74 65 6d 73 | 29 20 74 6f 20 68 65 69 |fldItems|) to hei|
|00003d20| 67 68 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 69 |ght.end |repeat.i|
|00003d30| 66 20 63 6f 6c 73 20 3d | 20 31 20 74 68 65 6e 0d |f cols =| 1 then.|
|00003d40| 70 75 74 20 63 68 61 70 | 4e 61 6d 65 73 20 69 6e |put chap|Names in|
|00003d50| 74 6f 20 63 64 20 66 6c | 64 20 22 54 61 62 6c 65 |to cd fl|d "Table|
|00003d60| 31 22 0d 70 75 74 20 70 | 61 67 65 4e 75 6d 73 20 |1".put p|ageNums |
|00003d70| 69 6e 74 6f 20 63 64 20 | 66 6c 64 20 22 50 61 67 |into cd |fld "Pag|
|00003d80| 65 31 22 0d 65 6c 73 65 | 0d 69 66 20 74 72 75 6e |e1".else|.if trun|
|00003d90| 63 28 6c 69 6e 65 73 20 | 2f 20 32 29 20 ad 20 28 |c(lines |/ 2) . (|
|00003da0| 6c 69 6e 65 73 20 2f 20 | 32 29 20 74 68 65 6e 0d |lines / |2) then.|
|00003db0| 70 75 74 20 74 72 75 6e | 63 28 6c 69 6e 65 73 20 |put trun|c(lines |
|00003dc0| 2f 20 32 29 20 2b 20 31 | 20 69 6e 74 6f 20 66 69 |/ 2) + 1| into fi|
|00003dd0| 72 73 74 43 6f 6c 0d 65 | 6c 73 65 0d 70 75 74 20 |rstCol.e|lse.put |
|00003de0| 28 6c 69 6e 65 73 20 2f | 20 32 29 20 69 6e 74 6f |(lines /| 2) into|
|00003df0| 20 66 69 72 73 74 43 6f | 6c 0d 65 6e 64 20 69 66 | firstCo|l.end if|
|00003e00| 0d 70 75 74 20 6c 69 6e | 65 20 31 20 74 6f 20 66 |.put lin|e 1 to f|
|00003e10| 69 72 73 74 43 6f 6c 20 | 6f 66 20 63 68 61 70 4e |irstCol |of chapN|
|00003e20| 61 6d 65 73 20 69 6e 74 | 6f 20 63 64 20 66 6c 64 |ames int|o cd fld|
|00003e30| 20 22 54 61 62 6c 65 31 | 22 0d 70 75 74 20 6c 69 | "Table1|".put li|
|00003e40| 6e 65 20 31 20 74 6f 20 | 66 69 72 73 74 43 6f 6c |ne 1 to |firstCol|
|00003e50| 20 6f 66 20 70 61 67 65 | 4e 75 6d 73 20 69 6e 74 | of page|Nums int|
|00003e60| 6f 20 63 64 20 66 6c 64 | 20 22 50 61 67 65 31 22 |o cd fld| "Page1"|
|00003e70| 0d 70 75 74 20 6c 69 6e | 65 20 28 66 69 72 73 74 |.put lin|e (first|
|00003e80| 43 6f 6c 20 2b 20 31 29 | 20 74 6f 20 28 74 68 65 |Col + 1)| to (the|
|00003e90| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00003ea0| 20 6f 66 20 63 68 61 70 | 4e 61 6d 65 73 29 20 6f | of chap|Names) o|
|00003eb0| 66 20 63 68 61 70 4e 61 | 6d 65 73 20 69 6e 74 6f |f chapNa|mes into|
|00003ec0| 20 63 64 20 66 6c 64 20 | 22 54 61 62 6c 65 32 22 | cd fld |"Table2"|
|00003ed0| 0d 70 75 74 20 6c 69 6e | 65 20 28 66 69 72 73 74 |.put lin|e (first|
|00003ee0| 43 6f 6c 20 2b 20 31 29 | 20 74 6f 20 28 74 68 65 |Col + 1)| to (the|
|00003ef0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00003f00| 20 6f 66 20 63 68 61 70 | 4e 61 6d 65 73 29 20 6f | of chap|Names) o|
|00003f10| 66 20 70 61 67 65 4e 75 | 6d 73 20 69 6e 74 6f 20 |f pageNu|ms into |
|00003f20| 63 64 20 66 6c 64 20 22 | 50 61 67 65 32 22 0d 65 |cd fld "|Page2".e|
|00003f30| 6e 64 20 69 66 0d 65 6e | 64 20 6d 61 6b 65 54 61 |nd if.en|d makeTa|
|00003f40| 62 6c 65 0d 0d 0d 6f 6e | 20 6f 70 65 6e 53 74 61 |ble...on| openSta|
|00003f50| 63 6b 0d 69 66 20 77 72 | 6f 6e 67 53 74 61 63 6b |ck.if wr|ongStack|
|00003f60| 28 29 20 74 68 65 6e 20 | 70 61 73 73 20 6f 70 65 |() then |pass ope|
|00003f70| 6e 53 74 61 63 6b 0d 69 | 66 20 22 4d 61 67 4d 61 |nStack.i|f "MagMa|
|00003f80| 6b 65 72 54 6f 6f 6c 73 | 20 42 22 20 69 73 20 69 |kerTools| B" is i|
|00003f90| 6e 20 74 68 65 20 73 74 | 61 63 6b 73 49 6e 55 73 |n the st|acksInUs|
|00003fa0| 65 20 74 68 65 6e 20 73 | 74 6f 70 20 75 73 69 6e |e then s|top usin|
|00003fb0| 67 20 73 74 61 63 6b 20 | 22 4d 61 67 4d 61 6b 65 |g stack |"MagMake|
|00003fc0| 72 54 6f 6f 6c 73 20 42 | 22 0d 61 6e 73 77 65 72 |rTools B|".answer|
|00003fd0| 20 22 54 68 65 20 4d 61 | 67 4d 61 6b 65 72 20 54 | "The Ma|gMaker T|
|00003fe0| 6f 6f 6c 73 20 41 20 61 | 6e 64 20 42 20 73 74 61 |ools A a|nd B sta|
|00003ff0| 63 6b 73 20 68 6f 6c 64 | 20 74 68 65 20 73 63 72 |cks hold| the scr|
|00004000| 69 70 74 73 20 75 73 65 | 64 20 66 6f 72 20 63 72 |ipts use|d for cr|
|00004010| 65 61 74 69 6e 67 20 4d | 61 67 4d 61 6b 65 72 20 |eating M|agMaker |
|00004020| 6d 61 67 61 7a 69 6e 65 | 73 2e 22 20 26 20 72 65 |magazine|s." & re|
|00004030| 74 75 72 6e 20 26 20 72 | 65 74 75 72 6e 20 26 20 |turn & r|eturn & |
|00004040| c2 0d 22 59 6f 75 20 64 | 6f 6e d5 74 20 6e 65 65 |.."You d|on.t nee|
|00004050| 64 20 74 6f 20 6f 70 65 | 6e 20 74 68 65 73 65 20 |d to ope|n these |
|00004060| 73 74 61 63 6b 73 2c 20 | 6a 75 73 74 20 70 75 74 |stacks, |just put|
|00004070| 20 74 68 65 6d 20 69 6e | 74 6f 20 74 68 65 20 73 | them in|to the s|
|00004080| 61 6d 65 20 66 6f 6c 64 | 65 72 20 61 73 20 79 6f |ame fold|er as yo|
|00004090| 75 72 20 4d 61 67 4d 61 | 6b 65 72 20 6d 61 67 61 |ur MagMa|ker maga|
|000040a0| 7a 69 6e 65 2c 20 61 6e | 64 20 6f 70 65 6e 20 74 |zine, an|d open t|
|000040b0| 68 65 20 6d 61 67 61 7a | 69 6e 65 2e 22 0d 65 6e |he magaz|ine.".en|
|000040c0| 64 20 6f 70 65 6e 53 74 | 61 63 6b 0d 0d 6f 6e 20 |d openSt|ack..on |
|000040d0| 63 6c 6f 73 65 53 74 61 | 63 6b 0d 69 66 20 77 72 |closeSta|ck.if wr|
|000040e0| 6f 6e 67 53 74 61 63 6b | 28 29 20 74 68 65 6e 20 |ongStack|() then |
|000040f0| 70 61 73 73 20 63 6c 6f | 73 65 53 74 61 63 6b 0d |pass clo|seStack.|
|00004100| 69 66 20 22 4d 61 67 4d | 61 6b 65 72 54 6f 6f 6c |if "MagM|akerTool|
|00004110| 73 20 42 22 20 69 73 20 | 69 6e 20 74 68 65 20 73 |s B" is |in the s|
|00004120| 74 61 63 6b 73 49 6e 55 | 73 65 20 74 68 65 6e 20 |tacksInU|se then |
|00004130| 73 74 6f 70 20 75 73 69 | 6e 67 20 73 74 61 63 6b |stop usi|ng stack|
|00004140| 20 22 4d 61 67 4d 61 6b | 65 72 54 6f 6f 6c 73 20 | "MagMak|erTools |
|00004150| 42 22 0d 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |B".if th|ere is a|
|00004160| 20 77 69 6e 64 6f 77 20 | 22 4d 61 67 4d 61 6b 65 | window |"MagMake|
|00004170| 72 54 6f 6f 6c 73 20 42 | 22 20 74 68 65 6e 20 63 |rTools B|" then c|
|00004180| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 4d 61 67 |lose win|dow "Mag|
|00004190| 4d 61 6b 65 72 54 6f 6f | 6c 73 20 42 22 0d 65 6e |MakerToo|ls B".en|
|000041a0| 64 20 63 6c 6f 73 65 53 | 74 61 63 6b 0d 0d 6f 6e |d closeS|tack..on|
|000041b0| 20 73 75 73 70 65 6e 64 | 0d 63 6c 6f 73 65 53 74 | suspend|.closeSt|
|000041c0| 61 63 6b 0d 65 6e 64 20 | 73 75 73 70 65 6e 64 0d |ack.end |suspend.|
|000041d0| 0d 6f 6e 20 73 75 73 70 | 65 6e 64 53 74 61 63 6b |.on susp|endStack|
|000041e0| 0d 63 6c 6f 73 65 53 74 | 61 63 6b 0d 65 6e 64 20 |.closeSt|ack.end |
|000041f0| 73 75 73 70 65 6e 64 53 | 74 61 63 6b 0d 0d 0d 66 |suspendS|tack...f|
|00004200| 75 6e 63 74 69 6f 6e 20 | 77 72 6f 6e 67 53 74 61 |unction |wrongSta|
|00004210| 63 6b 0d 67 65 74 20 74 | 68 65 20 76 61 6c 75 65 |ck.get t|he value|
|00004220| 20 6f 66 20 77 6f 72 64 | 20 32 20 6f 66 20 74 68 | of word| 2 of th|
|00004230| 65 20 6c 6f 6e 67 20 6e | 61 6d 65 20 6f 66 20 6d |e long n|ame of m|
|00004240| 65 0d 72 65 74 75 72 6e | 20 28 69 74 20 69 73 20 |e.return| (it is |
|00004250| 6e 6f 74 20 6c 69 6e 65 | 20 31 20 6f 66 20 74 68 |not line| 1 of th|
|00004260| 65 20 73 74 61 63 6b 73 | 29 0d 65 6e 64 20 77 72 |e stacks|).end wr|
|00004270| 6f 6e 67 53 74 61 63 6b | 0d 0d 0d 66 75 6e 63 74 |ongStack|...funct|
|00004280| 69 6f 6e 20 63 6c 65 61 | 6e 44 61 73 68 65 73 20 |ion clea|nDashes |
|00004290| 77 68 61 74 54 65 78 74 | 0d 72 65 70 65 61 74 20 |whatText|.repeat |
|000042a0| 77 69 74 68 20 78 20 3d | 20 31 20 74 6f 20 74 68 |with x =| 1 to th|
|000042b0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|000042c0| 73 20 6f 66 20 77 68 61 | 74 54 65 78 74 0d 69 66 |s of wha|tText.if|
|000042d0| 20 22 2d 22 20 69 73 20 | 74 68 65 20 6c 61 73 74 | "-" is |the last|
|000042e0| 20 63 68 61 72 20 6f 66 | 20 6c 69 6e 65 20 78 20 | char of| line x |
|000042f0| 6f 66 20 77 68 61 74 54 | 65 78 74 20 74 68 65 6e |of whatT|ext then|
|00004300| 0d 64 65 6c 65 74 65 20 | 74 68 65 20 6c 61 73 74 |.delete |the last|
|00004310| 20 63 68 61 72 20 6f 66 | 20 6c 69 6e 65 20 78 20 | char of| line x |
|00004320| 6f 66 20 77 68 61 74 54 | 65 78 74 0d 70 75 74 20 |of whatT|ext.put |
|00004330| 6c 69 6e 65 20 78 20 6f | 66 20 77 68 61 74 54 65 |line x o|f whatTe|
|00004340| 78 74 20 69 6e 74 6f 20 | 68 6f 6c 64 4c 69 6e 65 |xt into |holdLine|
|00004350| 0d 70 75 74 20 68 6f 6c | 64 4c 69 6e 65 20 62 65 |.put hol|dLine be|
|00004360| 66 6f 72 65 20 6c 69 6e | 65 20 78 20 2b 20 31 20 |fore lin|e x + 1 |
|00004370| 6f 66 20 77 68 61 74 54 | 65 78 74 0d 64 65 6c 65 |of whatT|ext.dele|
|00004380| 74 65 20 6c 69 6e 65 20 | 78 20 6f 66 20 77 68 61 |te line |x of wha|
|00004390| 74 54 65 78 74 0d 65 6e | 64 20 69 66 0d 69 66 20 |tText.en|d if.if |
|000043a0| 22 2d 22 20 69 73 20 69 | 6e 20 6c 69 6e 65 20 78 |"-" is i|n line x|
|000043b0| 20 6f 66 20 77 68 61 74 | 54 65 78 74 20 74 68 65 | of what|Text the|
|000043c0| 6e 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 79 20 |n.repeat| with y |
|000043d0| 3d 20 31 20 74 6f 20 74 | 68 65 20 6e 75 6d 62 65 |= 1 to t|he numbe|
|000043e0| 72 20 6f 66 20 63 68 61 | 72 73 20 6f 66 20 77 68 |r of cha|rs of wh|
|000043f0| 61 74 54 65 78 74 0d 69 | 66 20 63 68 61 72 20 79 |atText.i|f char y|
|00004400| 20 74 6f 20 79 20 2b 20 | 31 20 6f 66 20 6c 69 6e | to y + |1 of lin|
|00004410| 65 20 78 20 6f 66 20 77 | 68 61 74 54 65 78 74 20 |e x of w|hatText |
|00004420| 69 73 20 22 2d 20 22 20 | 74 68 65 6e 0d 70 75 74 |is "- " |then.put|
|00004430| 20 22 22 20 69 6e 74 6f | 20 63 68 61 72 20 79 20 | "" into| char y |
|00004440| 74 6f 20 79 20 2b 20 31 | 20 6f 66 20 6c 69 6e 65 |to y + 1| of line|
|00004450| 20 78 20 6f 66 20 77 68 | 61 74 54 65 78 74 0d 70 | x of wh|atText.p|
|00004460| 75 74 20 6c 69 6e 65 20 | 78 20 6f 66 20 77 68 61 |ut line |x of wha|
|00004470| 74 54 65 78 74 20 69 6e | 74 6f 20 68 6f 6c 64 4c |tText in|to holdL|
|00004480| 69 6e 65 0d 70 75 74 20 | 68 6f 6c 64 4c 69 6e 65 |ine.put |holdLine|
|00004490| 20 62 65 66 6f 72 65 20 | 6c 69 6e 65 20 78 20 2b | before |line x +|
|000044a0| 20 31 20 6f 66 20 77 68 | 61 74 54 65 78 74 0d 64 | 1 of wh|atText.d|
|000044b0| 65 6c 65 74 65 20 6c 69 | 6e 65 20 78 20 6f 66 20 |elete li|ne x of |
|000044c0| 77 68 61 74 54 65 78 74 | 0d 65 6e 64 20 69 66 0d |whatText|.end if.|
|000044d0| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|000044e0| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 72 65 74 |f.end re|peat.ret|
|000044f0| 75 72 6e 20 77 68 61 74 | 54 65 78 74 0d 65 6e 64 |urn what|Text.end|
|00004500| 20 63 6c 65 61 6e 44 61 | 73 68 65 73 0d 0d 6f 6e | cleanDa|shes..on|
|00004510| 20 63 6f 70 79 41 72 74 | 69 63 6c 65 0d 67 6c 6f | copyArt|icle.glo|
|00004520| 62 61 6c 20 6d 61 70 70 | 65 72 0d 69 66 20 74 6f |bal mapp|er.if to|
|00004530| 6f 6c 73 53 74 61 63 6b | 28 29 20 74 68 65 6e 20 |olsStack|() then |
|00004540| 65 78 69 74 20 63 6f 70 | 79 41 72 74 69 63 6c 65 |exit cop|yArticle|
|00004550| 0d 72 65 46 6c 6f 77 57 | 69 74 68 53 74 79 6c 65 |.reFlowW|ithStyle|
|00004560| 20 74 72 75 65 0d 70 75 | 74 20 66 6c 64 20 22 42 | true.pu|t fld "B|
|00004570| 6f 64 79 22 20 69 6e 74 | 6f 20 72 65 70 61 73 74 |ody" int|o repast|
|00004580| 65 0d 70 75 73 68 20 63 | 64 0d 6c 6f 63 6b 20 73 |e.push c|d.lock s|
|00004590| 63 72 65 65 6e 0d 75 6e | 6d 61 72 6b 20 61 6c 6c |creen.un|mark all|
|000045a0| 20 63 64 73 0d 70 75 74 | 20 66 6c 64 20 22 41 72 | cds.put| fld "Ar|
|000045b0| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 6e 74 6f 20 |ticleNam|e" into |
|000045c0| 74 68 69 73 43 68 61 70 | 74 65 72 0d 6d 61 72 6b |thisChap|ter.mark|
|000045d0| 20 63 64 73 20 77 68 65 | 72 65 20 66 6c 64 20 22 | cds whe|re fld "|
|000045e0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 73 20 |ArticleN|ame" is |
|000045f0| 74 68 69 73 43 68 61 70 | 74 65 72 0d 67 6f 20 66 |thisChap|ter.go f|
|00004600| 69 72 73 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 70 |irst mar|ked cd.p|
|00004610| 75 74 20 74 68 65 20 69 | 64 20 6f 66 20 74 68 69 |ut the i|d of thi|
|00004620| 73 20 63 64 20 69 6e 74 | 6f 20 66 69 72 73 74 43 |s cd int|o firstC|
|00004630| 64 0d 72 65 70 65 61 74 | 20 77 69 74 68 20 78 20 |d.repeat| with x |
|00004640| 3d 20 31 20 74 6f 20 28 | 74 68 65 20 6e 75 6d 62 |= 1 to (|the numb|
|00004650| 65 72 20 6f 66 20 6d 61 | 72 6b 65 64 20 63 64 73 |er of ma|rked cds|
|00004660| 29 0d 70 75 74 20 66 6c | 64 20 22 42 6f 64 79 22 |).put fl|d "Body"|
|00004670| 20 61 66 74 65 72 20 63 | 68 61 70 43 6f 70 79 0d | after c|hapCopy.|
|00004680| 67 6f 20 6e 65 78 74 20 | 6d 61 72 6b 65 64 20 63 |go next |marked c|
|00004690| 64 0d 69 66 20 74 68 65 | 20 69 64 20 6f 66 20 74 |d.if the| id of t|
|000046a0| 68 69 73 20 63 64 20 69 | 73 20 66 69 72 73 74 43 |his cd i|s firstC|
|000046b0| 64 20 74 68 65 6e 20 65 | 78 69 74 20 72 65 70 65 |d then e|xit repe|
|000046c0| 61 74 0d 69 66 20 74 68 | 65 20 6c 61 73 74 20 63 |at.if th|e last c|
|000046d0| 68 61 72 20 6f 66 20 63 | 68 61 70 43 6f 70 79 20 |har of c|hapCopy |
|000046e0| 69 73 20 6e 6f 74 20 22 | 20 22 20 74 68 65 6e 20 |is not "| " then |
|000046f0| 70 75 74 20 22 20 22 20 | 61 66 74 65 72 20 63 68 |put " " |after ch|
|00004700| 61 70 43 6f 70 79 0d 65 | 6e 64 20 72 65 70 65 61 |apCopy.e|nd repea|
|00004710| 74 0d 70 6f 70 20 63 64 | 0d 70 75 74 20 63 68 61 |t.pop cd|.put cha|
|00004720| 70 43 6f 70 79 20 69 6e | 74 6f 20 66 6c 64 20 22 |pCopy in|to fld "|
|00004730| 42 6f 64 79 22 0d 73 65 | 6c 65 63 74 20 74 65 78 |Body".se|lect tex|
|00004740| 74 20 6f 66 20 66 6c 64 | 20 22 42 6f 64 79 22 0d |t of fld| "Body".|
|00004750| 64 6f 4d 65 6e 75 20 22 | 43 6f 70 79 20 54 65 78 |doMenu "|Copy Tex|
|00004760| 74 22 0d 70 75 74 20 72 | 65 70 61 73 74 65 20 69 |t".put r|epaste i|
|00004770| 6e 74 6f 20 66 6c 64 20 | 22 42 6f 64 79 22 0d 69 |nto fld |"Body".i|
|00004780| 66 20 6d 61 70 70 65 72 | 20 69 73 20 6e 6f 74 20 |f mapper| is not |
|00004790| 65 6d 70 74 79 20 74 68 | 65 6e 0d 72 65 53 74 79 |empty th|en.reSty|
|000047a0| 6c 65 42 6f 64 79 0d 65 | 6e 64 20 69 66 0d 65 6e |leBody.e|nd if.en|
|000047b0| 64 20 63 6f 70 79 41 72 | 74 69 63 6c 65 0d 0d 6f |d copyAr|ticle..o|
|000047c0| 6e 20 70 61 73 74 65 41 | 72 74 69 63 6c 65 0d 67 |n pasteA|rticle.g|
|000047d0| 6c 6f 62 61 6c 20 6d 61 | 70 70 65 72 0d 6c 6f 63 |lobal ma|pper.loc|
|000047e0| 6b 20 73 63 72 65 65 6e | 0d 64 6f 4d 65 6e 75 20 |k screen|.doMenu |
|000047f0| 22 50 61 73 74 65 20 54 | 65 78 74 22 0d 69 66 20 |"Paste T|ext".if |
|00004800| 6d 61 70 70 65 72 20 69 | 73 20 6e 6f 74 20 65 6d |mapper i|s not em|
|00004810| 70 74 79 20 74 68 65 6e | 0d 72 65 53 74 79 6c 65 |pty then|.reStyle|
|00004820| 42 6f 64 79 0d 65 6e 64 | 20 69 66 0d 72 65 66 6c |Body.end| if.refl|
|00004830| 6f 77 57 69 74 68 53 74 | 79 6c 65 0d 65 6e 64 20 |owWithSt|yle.end |
|00004840| 70 61 73 74 65 41 72 74 | 69 63 6c 65 0d 0d 0d 2d |pasteArt|icle...-|
|00004850| 2d 20 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |- The fo|llowing |
|00004860| 74 79 70 65 73 65 74 74 | 69 6e 67 20 68 61 6e 64 |typesett|ing hand|
|00004870| 6c 65 72 73 20 61 72 65 | 20 61 64 61 70 74 65 64 |lers are| adapted|
|00004880| 20 66 72 6f 6d 20 22 54 | 68 65 20 47 75 74 65 6e | from "T|he Guten|
|00004890| 62 65 72 67 20 52 65 61 | 64 65 72 20 53 74 61 63 |berg Rea|der Stac|
|000048a0| 6b 22 20 47 6c 65 6e 20 | 4c 2e 20 42 6c 65 64 73 |k" Glen |L. Bleds|
|000048b0| 6f 65 0d 2d 2d 20 77 68 | 6f 20 69 6e 20 74 75 72 |oe.-- wh|o in tur|
|000048c0| 6e 20 63 72 65 64 69 74 | 73 20 22 43 6f 6f 6b 69 |n credit|s "Cooki|
|000048d0| 6e 67 20 57 69 74 68 20 | 48 79 70 65 72 54 61 6c |ng With |HyperTal|
|000048e0| 6b 22 20 62 79 20 44 61 | 6e 20 57 69 6e 6b 6c 65 |k" by Da|n Winkle|
|000048f0| 72 20 61 6e 64 20 53 63 | 6f 74 20 4b 6e 61 73 74 |r and Sc|ot Knast|
|00004900| 65 72 2e 0d 2d 2d 20 57 | 68 65 72 65 20 77 6f 75 |er..-- W|here wou|
|00004910| 6c 64 20 77 65 20 62 65 | 20 77 69 74 68 6f 75 74 |ld we be| without|
|00004920| 20 74 68 65 73 65 20 67 | 75 79 73 20 28 6d 61 79 | these g|uys (may|
|00004930| 62 65 20 6f 75 74 20 69 | 6e 20 74 68 65 20 73 75 |be out i|n the su|
|00004940| 6e 20 69 6e 73 74 65 61 | 64 20 6f 66 20 69 6e 20 |n instea|d of in |
|00004950| 66 72 6f 6e 74 20 6f 66 | 20 74 68 69 73 20 73 63 |front of| this sc|
|00004960| 72 65 65 6e 29 2e 0d 0d | 6f 6e 20 74 79 70 65 73 |reen)...|on types|
|00004970| 65 74 54 65 78 74 0d 69 | 66 20 74 6f 6f 6c 73 53 |etText.i|f toolsS|
|00004980| 74 61 63 6b 28 29 20 74 | 68 65 6e 20 65 78 69 74 |tack() t|hen exit|
|00004990| 20 74 79 70 65 73 65 74 | 54 65 78 74 0d 6c 6f 63 | typeset|Text.loc|
|000049a0| 6b 20 73 63 72 65 65 6e | 0d 6c 6f 63 6b 20 6d 65 |k screen|.lock me|
|000049b0| 73 73 61 67 65 73 0d 70 | 75 74 20 74 68 65 20 76 |ssages.p|ut the v|
|000049c0| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 20 69 6e |isible o|f msg in|
|000049d0| 74 6f 20 72 65 4d 73 67 | 0d 72 65 46 6c 6f 77 57 |to reMsg|.reFlowW|
|000049e0| 69 74 68 53 74 79 6c 65 | 20 74 72 75 65 0d 70 75 |ithStyle| true.pu|
|000049f0| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|00004a00| 74 68 69 73 20 63 64 20 | 69 6e 74 6f 20 67 6f 42 |this cd |into goB|
|00004a10| 61 63 6b 0d 75 6e 6d 61 | 72 6b 20 61 6c 6c 20 63 |ack.unma|rk all c|
|00004a20| 64 73 0d 70 75 74 20 66 | 6c 64 20 22 41 72 74 69 |ds.put f|ld "Arti|
|00004a30| 63 6c 65 4e 61 6d 65 22 | 20 69 6e 74 6f 20 74 68 |cleName"| into th|
|00004a40| 69 73 43 68 61 70 0d 6d | 61 72 6b 20 63 61 72 64 |isChap.m|ark card|
|00004a50| 73 20 77 68 65 72 65 20 | 66 6c 64 20 22 41 72 74 |s where |fld "Art|
|00004a60| 69 63 6c 65 4e 61 6d 65 | 22 20 69 73 20 74 68 69 |icleName|" is thi|
|00004a70| 73 43 68 61 70 0d 67 6f | 20 66 69 72 73 74 20 6d |sChap.go| first m|
|00004a80| 61 72 6b 65 64 20 63 64 | 0d 70 75 74 20 22 52 65 |arked cd|.put "Re|
|00004a90| 70 6c 61 63 69 6e 67 20 | 65 6d 20 64 61 73 68 65 |placing |em dashe|
|00004aa0| 73 2e 22 0d 73 6d 61 72 | 74 65 6e 45 6d 44 61 73 |s.".smar|tenEmDas|
|00004ab0| 68 20 74 68 69 73 43 68 | 61 70 0d 70 75 74 20 22 |h thisCh|ap.put "|
|00004ac0| 52 65 70 6c 61 63 69 6e | 67 20 65 6e 20 64 61 73 |Replacin|g en das|
|00004ad0| 68 65 73 2e 22 0d 73 6d | 61 72 74 65 6e 45 6e 44 |hes.".sm|artenEnD|
|00004ae0| 61 73 68 20 74 68 69 73 | 43 68 61 70 0d 70 75 74 |ash this|Chap.put|
|00004af0| 20 22 49 6e 73 65 72 74 | 69 6e 67 20 73 6d 61 72 | "Insert|ing smar|
|00004b00| 74 20 71 75 6f 74 65 73 | 20 61 6e 64 20 61 70 6f |t quotes| and apo|
|00004b10| 73 74 72 6f 70 68 65 73 | 2e 22 0d 73 6d 61 72 74 |strophes|.".smart|
|00004b20| 65 6e 44 6f 75 62 6c 65 | 51 75 6f 74 65 73 20 74 |enDouble|Quotes t|
|00004b30| 68 69 73 43 68 61 70 0d | 73 6d 61 72 74 65 6e 53 |hisChap.|smartenS|
|00004b40| 69 6e 67 6c 65 51 75 6f | 74 65 73 20 74 68 69 73 |ingleQuo|tes this|
|00004b50| 43 68 61 70 0d 73 6d 61 | 72 74 65 6e 41 70 6f 73 |Chap.sma|rtenApos|
|00004b60| 74 72 6f 70 68 65 20 74 | 68 69 73 43 68 61 70 0d |trophe t|hisChap.|
|00004b70| 72 65 53 74 79 6c 65 42 | 6f 64 79 0d 72 65 46 6c |reStyleB|ody.reFl|
|00004b80| 6f 77 57 69 74 68 53 74 | 79 6c 65 0d 69 66 20 74 |owWithSt|yle.if t|
|00004b90| 68 65 72 65 20 69 73 20 | 61 20 63 64 20 67 6f 42 |here is |a cd goB|
|00004ba0| 61 63 6b 20 74 68 65 6e | 20 67 6f 20 63 64 20 67 |ack then| go cd g|
|00004bb0| 6f 42 61 63 6b 0d 65 6c | 73 65 20 67 6f 20 66 69 |oBack.el|se go fi|
|00004bc0| 72 73 74 20 6d 61 72 6b | 65 64 20 63 64 0d 73 65 |rst mark|ed cd.se|
|00004bd0| 74 20 74 68 65 20 76 69 | 73 69 62 6c 65 20 6f 66 |t the vi|sible of|
|00004be0| 20 6d 73 67 20 74 6f 20 | 72 65 4d 73 67 0d 65 6e | msg to |reMsg.en|
|00004bf0| 64 20 74 79 70 65 73 65 | 74 54 65 78 74 0d 0d 66 |d typese|tText..f|
|00004c00| 75 6e 63 74 69 6f 6e 20 | 6d 61 72 6b 49 6e 64 65 |unction |markInde|
|00004c10| 6e 74 73 20 77 68 61 74 | 54 65 78 74 0d 2d 2d 20 |nts what|Text.-- |
|00004c20| 4d 61 72 6b 73 20 70 61 | 72 61 67 72 61 70 68 73 |Marks pa|ragraphs|
|00004c30| 20 77 69 74 68 20 61 20 | 62 61 63 6b d0 73 6c 61 | with a |back.sla|
|00004c40| 73 68 20 28 5c 29 20 62 | 65 66 6f 72 65 20 72 65 |sh (\) b|efore re|
|00004c50| 6d 6f 76 69 6e 67 20 63 | 61 72 72 69 61 67 65 20 |moving c|arriage |
|00004c60| 72 65 74 75 72 6e 73 2e | 0d 73 65 74 20 74 68 65 |returns.|.set the|
|00004c70| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00004c80| 0d 70 75 74 20 22 4d 61 | 72 6b 69 6e 67 20 69 6e |.put "Ma|rking in|
|00004c90| 64 65 6e 74 73 2e 22 0d | 72 65 70 65 61 74 20 77 |dents.".|repeat w|
|00004ca0| 69 74 68 20 79 20 3d 20 | 31 20 74 6f 20 74 68 65 |ith y = |1 to the|
|00004cb0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00004cc0| 20 6f 66 20 77 68 61 74 | 54 65 78 74 0d 69 66 20 | of what|Text.if |
|00004cd0| 6c 69 6e 65 20 79 20 6f | 66 20 77 68 61 74 54 65 |line y o|f whatTe|
|00004ce0| 78 74 20 3d 20 65 6d 70 | 74 79 20 6f 72 20 6c 69 |xt = emp|ty or li|
|00004cf0| 6e 65 20 79 20 6f 66 20 | 77 68 61 74 54 65 78 74 |ne y of |whatText|
|00004d00| 20 3d 20 22 5c 22 20 74 | 68 65 6e 0d 70 75 74 20 | = "\" t|hen.put |
|00004d10| 22 7c 5c 22 20 62 65 66 | 6f 72 65 20 63 68 61 72 |"|\" bef|ore char|
|00004d20| 20 31 20 6f 66 20 6c 69 | 6e 65 20 28 79 2b 31 29 | 1 of li|ne (y+1)|
|00004d30| 20 6f 66 20 77 68 61 74 | 54 65 78 74 0d 65 6e 64 | of what|Text.end|
|00004d40| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 | if.end |repeat.r|
|00004d50| 65 74 75 72 6e 20 77 68 | 61 74 54 65 78 74 0d 65 |eturn wh|atText.e|
|00004d60| 6e 64 20 6d 61 72 6b 49 | 6e 64 65 6e 74 73 0d 0d |nd markI|ndents..|
|00004d70| 6f 6e 20 72 65 6d 6f 76 | 65 44 61 73 68 65 73 0d |on remov|eDashes.|
|00004d80| 70 75 74 20 63 6c 65 61 | 6e 44 61 73 68 65 73 28 |put clea|nDashes(|
|00004d90| 73 74 72 69 70 54 65 78 | 74 29 20 69 6e 74 6f 20 |stripTex|t) into |
|00004da0| 73 74 72 69 70 54 65 78 | 74 0d 65 6e 64 20 72 65 |stripTex|t.end re|
|00004db0| 6d 6f 76 65 44 61 73 68 | 65 73 0d 0d 6f 6e 20 73 |moveDash|es..on s|
|00004dc0| 6d 61 72 74 65 6e 41 70 | 6f 73 74 72 6f 70 68 65 |martenAp|ostrophe|
|00004dd0| 20 77 68 61 74 43 68 61 | 70 0d 73 65 74 20 74 68 | whatCha|p.set th|
|00004de0| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |e cursor| to watc|
|00004df0| 68 0d 70 75 74 20 22 64 | 2c 73 2c 72 2c 6c 2c 74 |h.put "d|,s,r,l,t|
|00004e00| 2c 76 2c 6e 22 20 69 6e | 74 6f 20 61 6c 70 68 61 |,v,n" in|to alpha|
|00004e10| 62 65 74 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |bet.repe|at with |
|00004e20| 78 20 3d 20 31 20 74 6f | 20 74 68 65 20 6e 75 6d |x = 1 to| the num|
|00004e30| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 6f 66 20 |ber of i|tems of |
|00004e40| 61 6c 70 68 61 62 65 74 | 0d 70 75 74 20 28 22 27 |alphabet|.put ("'|
|00004e50| 22 20 26 20 69 74 65 6d | 20 78 20 6f 66 20 61 6c |" & item| x of al|
|00004e60| 70 68 61 62 65 74 29 20 | 69 6e 74 6f 20 6f 6c 64 |phabet) |into old|
|00004e70| 0d 70 75 74 20 28 22 d5 | 22 20 26 20 69 74 65 6d |.put (".|" & item|
|00004e80| 20 78 20 6f 66 20 61 6c | 70 68 61 62 65 74 29 20 | x of al|phabet) |
|00004e90| 69 6e 74 6f 20 6e 65 77 | 0d 72 65 70 65 61 74 0d |into new|.repeat.|
|00004ea0| 73 65 6e 64 20 22 66 69 | 6e 64 20 73 74 72 69 6e |send "fi|nd strin|
|00004eb0| 67 22 20 26 20 71 75 6f | 74 65 20 26 20 6f 6c 64 |g" & quo|te & old|
|00004ec0| 20 26 20 71 75 6f 74 65 | 20 26 26 20 22 69 6e 20 | & quote| && "in |
|00004ed0| 66 6c 64 20 42 6f 64 79 | 22 20 74 6f 20 48 79 70 |fld Body|" to Hyp|
|00004ee0| 65 72 43 61 72 64 0d 69 | 66 20 74 68 65 20 72 65 |erCard.i|f the re|
|00004ef0| 73 75 6c 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |sult is |not empt|
|00004f00| 79 20 6f 72 20 66 6c 64 | 20 22 41 72 74 69 63 6c |y or fld| "Articl|
|00004f10| 65 4e 61 6d 65 22 20 69 | 73 20 6e 6f 74 20 77 68 |eName" i|s not wh|
|00004f20| 61 74 43 68 61 70 20 74 | 68 65 6e 20 65 78 69 74 |atChap t|hen exit|
|00004f30| 20 72 65 70 65 61 74 0d | 64 6f 20 22 70 75 74 20 | repeat.|do "put |
|00004f40| 6e 65 77 20 69 6e 74 6f | 20 22 20 26 20 74 68 65 |new into| " & the|
|00004f50| 20 66 6f 75 6e 64 43 68 | 75 6e 6b 0d 65 6e 64 20 | foundCh|unk.end |
|00004f60| 72 65 70 65 61 74 0d 65 | 6e 64 20 72 65 70 65 61 |repeat.e|nd repea|
|00004f70| 74 0d 67 6f 20 66 69 72 | 73 74 20 6d 61 72 6b 65 |t.go fir|st marke|
|00004f80| 64 20 63 64 0d 70 75 74 | 20 22 73 27 22 20 69 6e |d cd.put| "s'" in|
|00004f90| 74 6f 20 6f 6c 64 0d 70 | 75 74 20 22 73 d5 22 20 |to old.p|ut "s." |
|00004fa0| 69 6e 74 6f 20 6e 65 77 | 0d 72 65 70 65 61 74 0d |into new|.repeat.|
|00004fb0| 73 65 6e 64 20 22 66 69 | 6e 64 20 73 74 72 69 6e |send "fi|nd strin|
|00004fc0| 67 22 20 26 20 71 75 6f | 74 65 20 26 20 6f 6c 64 |g" & quo|te & old|
|00004fd0| 20 26 20 71 75 6f 74 65 | 20 26 26 20 22 69 6e 20 | & quote| && "in |
|00004fe0| 66 6c 64 20 42 6f 64 79 | 22 20 74 6f 20 48 79 70 |fld Body|" to Hyp|
|00004ff0| 65 72 43 61 72 64 0d 69 | 66 20 74 68 65 20 72 65 |erCard.i|f the re|
|00005000| 73 75 6c 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |sult is |not empt|
|00005010| 79 20 6f 72 20 66 6c 64 | 20 22 41 72 74 69 63 6c |y or fld| "Articl|
|00005020| 65 4e 61 6d 65 22 20 69 | 73 20 6e 6f 74 20 77 68 |eName" i|s not wh|
|00005030| 61 74 43 68 61 70 20 74 | 68 65 6e 20 65 78 69 74 |atChap t|hen exit|
|00005040| 20 72 65 70 65 61 74 0d | 64 6f 20 22 70 75 74 20 | repeat.|do "put |
|00005050| 6e 65 77 20 69 6e 74 6f | 20 22 20 26 20 74 68 65 |new into| " & the|
|00005060| 20 66 6f 75 6e 64 43 68 | 75 6e 6b 0d 65 6e 64 20 | foundCh|unk.end |
|00005070| 72 65 70 65 61 74 0d 67 | 6f 20 66 69 72 73 74 20 |repeat.g|o first |
|00005080| 6d 61 72 6b 65 64 20 63 | 64 0d 65 6e 64 20 73 6d |marked c|d.end sm|
|00005090| 61 72 74 65 6e 41 70 6f | 73 74 72 6f 70 68 65 0d |artenApo|strophe.|
|000050a0| 0d 6f 6e 20 73 6d 61 72 | 74 65 6e 45 6d 44 61 73 |.on smar|tenEmDas|
|000050b0| 68 20 77 68 61 74 43 68 | 61 70 0d 73 65 74 20 74 |h whatCh|ap.set t|
|000050c0| 68 65 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |he curso|r to wat|
|000050d0| 63 68 0d 70 75 74 20 22 | 2d 2d 22 20 69 6e 74 6f |ch.put "|--" into|
|000050e0| 20 6f 6c 64 0d 70 75 74 | 20 22 d1 22 20 69 6e 74 | old.put| "." int|
|000050f0| 6f 20 6e 65 77 0d 72 65 | 70 65 61 74 0d 73 65 6e |o new.re|peat.sen|
|00005100| 64 20 22 66 69 6e 64 20 | 73 74 72 69 6e 67 22 20 |d "find |string" |
|00005110| 26 20 71 75 6f 74 65 20 | 26 20 6f 6c 64 20 26 20 |& quote |& old & |
|00005120| 71 75 6f 74 65 20 26 26 | 20 22 69 6e 20 66 6c 64 |quote &&| "in fld|
|00005130| 20 42 6f 64 79 22 20 74 | 6f 20 48 79 70 65 72 43 | Body" t|o HyperC|
|00005140| 61 72 64 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |ard.if t|he resul|
|00005150| 74 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 6f |t is not| empty o|
|00005160| 72 20 66 6c 64 20 22 41 | 72 74 69 63 6c 65 4e 61 |r fld "A|rticleNa|
|00005170| 6d 65 22 20 69 73 20 6e | 6f 74 20 77 68 61 74 43 |me" is n|ot whatC|
|00005180| 68 61 70 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |hap then| exit re|
|00005190| 70 65 61 74 0d 64 6f 20 | 22 70 75 74 20 6e 65 77 |peat.do |"put new|
|000051a0| 20 69 6e 74 6f 20 22 20 | 26 20 74 68 65 20 66 6f | into " |& the fo|
|000051b0| 75 6e 64 43 68 75 6e 6b | 0d 65 6e 64 20 72 65 70 |undChunk|.end rep|
|000051c0| 65 61 74 0d 67 6f 20 66 | 69 72 73 74 20 6d 61 72 |eat.go f|irst mar|
|000051d0| 6b 65 64 20 63 64 0d 65 | 6e 64 20 73 6d 61 72 74 |ked cd.e|nd smart|
|000051e0| 65 6e 45 6d 44 61 73 68 | 0d 0d 6f 6e 20 73 6d 61 |enEmDash|..on sma|
|000051f0| 72 74 65 6e 45 6e 44 61 | 73 68 20 77 68 61 74 43 |rtenEnDa|sh whatC|
|00005200| 68 61 70 0d 73 65 74 20 | 74 68 65 20 63 75 72 73 |hap.set |the curs|
|00005210| 6f 72 20 74 6f 20 77 61 | 74 63 68 0d 72 65 70 65 |or to wa|tch.repe|
|00005220| 61 74 0d 66 69 6e 64 20 | 22 2d 22 20 69 6e 20 66 |at.find |"-" in f|
|00005230| 6c 64 20 22 42 6f 64 79 | 22 0d 69 66 20 74 68 65 |ld "Body|".if the|
|00005240| 20 72 65 73 75 6c 74 20 | 69 73 20 6e 6f 74 20 65 | result |is not e|
|00005250| 6d 70 74 79 20 6f 72 20 | 66 6c 64 20 22 41 72 74 |mpty or |fld "Art|
|00005260| 69 63 6c 65 4e 61 6d 65 | 22 20 69 73 20 6e 6f 74 |icleName|" is not|
|00005270| 20 77 68 61 74 43 68 61 | 70 20 74 68 65 6e 20 65 | whatCha|p then e|
|00005280| 78 69 74 20 72 65 70 65 | 61 74 0d 70 75 74 20 77 |xit repe|at.put w|
|00005290| 6f 72 64 20 32 20 6f 66 | 20 74 68 65 20 66 6f 75 |ord 2 of| the fou|
|000052a0| 6e 64 43 68 75 6e 6b 20 | 69 6e 74 6f 20 6e 65 77 |ndChunk |into new|
|000052b0| 43 68 61 72 0d 70 75 74 | 20 22 d0 22 20 69 6e 74 |Char.put| "." int|
|000052c0| 6f 20 63 68 61 72 20 6e | 65 77 43 68 61 72 20 6f |o char n|ewChar o|
|000052d0| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 0d 65 6e 64 |f fld "B|ody".end|
|000052e0| 20 72 65 70 65 61 74 0d | 67 6f 20 66 69 72 73 74 | repeat.|go first|
|000052f0| 20 6d 61 72 6b 65 64 20 | 63 64 0d 65 6e 64 20 73 | marked |cd.end s|
|00005300| 6d 61 72 74 65 6e 45 6e | 44 61 73 68 0d 0d 6f 6e |martenEn|Dash..on|
|00005310| 20 73 6d 61 72 74 65 6e | 44 6f 75 62 6c 65 51 75 | smarten|DoubleQu|
|00005320| 6f 74 65 73 20 77 68 61 | 74 43 68 61 70 0d 72 65 |otes wha|tChap.re|
|00005330| 70 65 61 74 0d 66 69 6e | 64 20 71 75 6f 74 65 20 |peat.fin|d quote |
|00005340| 69 6e 20 66 6c 64 20 22 | 42 6f 64 79 22 0d 69 66 |in fld "|Body".if|
|00005350| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 6e | the res|ult is n|
|00005360| 6f 74 20 65 6d 70 74 79 | 20 6f 72 20 66 6c 64 20 |ot empty| or fld |
|00005370| 22 41 72 74 69 63 6c 65 | 4e 61 6d 65 22 20 69 73 |"Article|Name" is|
|00005380| 20 6e 6f 74 20 77 68 61 | 74 43 68 61 70 20 74 68 | not wha|tChap th|
|00005390| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 70 |en exit |repeat.p|
|000053a0| 75 74 20 77 6f 72 64 20 | 32 20 6f 66 20 74 68 65 |ut word |2 of the|
|000053b0| 20 66 6f 75 6e 64 43 68 | 75 6e 6b 20 69 6e 74 6f | foundCh|unk into|
|000053c0| 20 6e 65 77 43 68 61 72 | 0d 70 75 74 20 22 d2 22 | newChar|.put "."|
|000053d0| 20 69 6e 74 6f 20 63 68 | 61 72 20 6e 65 77 43 68 | into ch|ar newCh|
|000053e0| 61 72 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 |ar of fl|d "Body"|
|000053f0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 67 6f 20 66 |.end rep|eat.go f|
|00005400| 69 72 73 74 20 6d 61 72 | 6b 65 64 20 63 64 0d 0d |irst mar|ked cd..|
|00005410| 2d 2d 20 66 69 78 65 73 | 20 65 6e 64 d0 71 75 6f |-- fixes| end.quo|
|00005420| 74 65 73 20 61 6e 64 20 | 61 76 6f 69 64 73 20 64 |tes and |avoids d|
|00005430| 69 66 66 69 63 75 6c 74 | 69 65 73 20 77 69 74 68 |ifficult|ies with|
|00005440| 20 63 61 70 69 74 61 6c | 73 2e 0d 73 65 74 20 74 | capital|s..set t|
|00005450| 68 65 20 63 75 72 73 6f | 72 20 74 6f 20 77 61 74 |he curso|r to wat|
|00005460| 63 68 0d 70 75 74 20 22 | 2c d2 22 20 69 6e 74 6f |ch.put "|,." into|
|00005470| 20 6f 6c 64 0d 70 75 74 | 20 22 2c d3 22 20 69 6e | old.put| ",." in|
|00005480| 74 6f 20 6e 65 77 0d 72 | 65 70 65 61 74 0d 73 65 |to new.r|epeat.se|
|00005490| 6e 64 20 22 66 69 6e 64 | 20 73 74 72 69 6e 67 22 |nd "find| string"|
|000054a0| 20 26 20 71 75 6f 74 65 | 20 26 20 6f 6c 64 20 26 | & quote| & old &|
|000054b0| 20 71 75 6f 74 65 20 26 | 26 20 22 69 6e 20 66 6c | quote &|& "in fl|
|000054c0| 64 20 42 6f 64 79 22 20 | 74 6f 20 48 79 70 65 72 |d Body" |to Hyper|
|000054d0| 43 61 72 64 0d 69 66 20 | 74 68 65 20 72 65 73 75 |Card.if |the resu|
|000054e0| 6c 74 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |lt is no|t empty |
|000054f0| 6f 72 20 66 6c 64 20 22 | 41 72 74 69 63 6c 65 4e |or fld "|ArticleN|
|00005500| 61 6d 65 22 20 69 73 20 | 6e 6f 74 20 77 68 61 74 |ame" is |not what|
|00005510| 43 68 61 70 20 74 68 65 | 6e 20 65 78 69 74 20 72 |Chap the|n exit r|
|00005520| 65 70 65 61 74 0d 64 6f | 20 22 70 75 74 20 6e 65 |epeat.do| "put ne|
|00005530| 77 20 69 6e 74 6f 20 22 | 20 26 20 74 68 65 20 66 |w into "| & the f|
|00005540| 6f 75 6e 64 43 68 75 6e | 6b 0d 65 6e 64 20 72 65 |oundChun|k.end re|
|00005550| 70 65 61 74 0d 67 6f 20 | 66 69 72 73 74 20 6d 61 |peat.go |first ma|
|00005560| 72 6b 65 64 20 63 64 0d | 70 75 74 20 22 61 2c 62 |rked cd.|put "a,b|
|00005570| 2c 63 2c 64 2c 65 2c 66 | 2c 67 2c 68 2c 69 2c 6a |,c,d,e,f|,g,h,i,j|
|00005580| 2c 6b 2c 6c 2c 6d 2c 6e | 2c 6f 2c 70 2c 71 2c 72 |,k,l,m,n|,o,p,q,r|
|00005590| 2c 73 2c 74 2c 75 2c 76 | 2c 77 2c 78 2c 79 2c 7a |,s,t,u,v|,w,x,y,z|
|000055a0| 2c 2e 2c 3f 2c 21 2c 3b | 22 20 69 6e 74 6f 20 61 |,.,?,!,;|" into a|
|000055b0| 6c 70 68 61 62 65 74 0d | 72 65 70 65 61 74 20 77 |lphabet.|repeat w|
|000055c0| 69 74 68 20 78 20 3d 20 | 31 20 74 6f 20 74 68 65 |ith x = |1 to the|
|000055d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 69 74 65 6d 73 | number |of items|
|000055e0| 20 6f 66 20 61 6c 70 68 | 61 62 65 74 0d 70 75 74 | of alph|abet.put|
|000055f0| 20 28 69 74 65 6d 20 78 | 20 6f 66 20 61 6c 70 68 | (item x| of alph|
|00005600| 61 62 65 74 20 26 20 22 | d2 22 29 20 69 6e 74 6f |abet & "|.") into|
|00005610| 20 6f 6c 64 0d 70 75 74 | 20 28 69 74 65 6d 20 78 | old.put| (item x|
|00005620| 20 6f 66 20 61 6c 70 68 | 61 62 65 74 20 26 20 22 | of alph|abet & "|
|00005630| d3 22 29 20 69 6e 74 6f | 20 6e 65 77 0d 72 65 70 |.") into| new.rep|
|00005640| 65 61 74 0d 73 65 6e 64 | 20 22 66 69 6e 64 20 73 |eat.send| "find s|
|00005650| 74 72 69 6e 67 22 20 26 | 20 71 75 6f 74 65 20 26 |tring" &| quote &|
|00005660| 20 6f 6c 64 20 26 20 71 | 75 6f 74 65 20 26 26 20 | old & q|uote && |
|00005670| 22 69 6e 20 66 6c 64 20 | 42 6f 64 79 22 20 74 6f |"in fld |Body" to|
|00005680| 20 48 79 70 65 72 43 61 | 72 64 0d 69 66 20 74 68 | HyperCa|rd.if th|
|00005690| 65 20 72 65 73 75 6c 74 | 20 69 73 20 6e 6f 74 20 |e result| is not |
|000056a0| 65 6d 70 74 79 20 6f 72 | 20 66 6c 64 20 22 41 72 |empty or| fld "Ar|
|000056b0| 74 69 63 6c 65 4e 61 6d | 65 22 20 69 73 20 6e 6f |ticleNam|e" is no|
|000056c0| 74 20 77 68 61 74 43 68 | 61 70 20 74 68 65 6e 20 |t whatCh|ap then |
|000056d0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 64 6f 20 22 |exit rep|eat.do "|
|000056e0| 70 75 74 20 6e 65 77 20 | 69 6e 74 6f 20 22 20 26 |put new |into " &|
|000056f0| 20 74 68 65 20 66 6f 75 | 6e 64 43 68 75 6e 6b 0d | the fou|ndChunk.|
|00005700| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 72 |end repe|at.end r|
|00005710| 65 70 65 61 74 0d 67 6f | 20 66 69 72 73 74 20 6d |epeat.go| first m|
|00005720| 61 72 6b 65 64 20 63 64 | 0d 65 6e 64 20 73 6d 61 |arked cd|.end sma|
|00005730| 72 74 65 6e 44 6f 75 62 | 6c 65 51 75 6f 74 65 73 |rtenDoub|leQuotes|
|00005740| 0d 0d 6f 6e 20 73 6d 61 | 72 74 65 6e 53 69 6e 67 |..on sma|rtenSing|
|00005750| 6c 65 51 75 6f 74 65 73 | 20 77 68 61 74 43 68 61 |leQuotes| whatCha|
|00005760| 70 0d 72 65 70 65 61 74 | 0d 66 69 6e 64 20 22 27 |p.repeat|.find "'|
|00005770| 22 20 69 6e 20 66 6c 64 | 20 22 42 6f 64 79 22 0d |" in fld| "Body".|
|00005780| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 73 |if the r|esult is|
|00005790| 20 6e 6f 74 20 65 6d 70 | 74 79 20 6f 72 20 66 6c | not emp|ty or fl|
|000057a0| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|000057b0| 69 73 20 6e 6f 74 20 77 | 68 61 74 43 68 61 70 20 |is not w|hatChap |
|000057c0| 74 68 65 6e 20 65 78 69 | 74 20 72 65 70 65 61 74 |then exi|t repeat|
|000057d0| 0d 70 75 74 20 77 6f 72 | 64 20 32 20 6f 66 20 74 |.put wor|d 2 of t|
|000057e0| 68 65 20 66 6f 75 6e 64 | 43 68 75 6e 6b 20 69 6e |he found|Chunk in|
|000057f0| 74 6f 20 6e 65 77 43 68 | 61 72 0d 70 75 74 20 22 |to newCh|ar.put "|
|00005800| d5 22 20 69 6e 74 6f 20 | 63 68 61 72 20 6e 65 77 |." into |char new|
|00005810| 43 68 61 72 20 6f 66 20 | 66 6c 64 20 22 42 6f 64 |Char of |fld "Bod|
|00005820| 79 22 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 67 6f |y".end r|epeat.go|
|00005830| 20 66 69 72 73 74 20 6d | 61 72 6b 65 64 20 63 64 | first m|arked cd|
|00005840| 0d 70 75 74 20 22 61 2c | 62 2c 63 2c 64 2c 65 2c |.put "a,|b,c,d,e,|
|00005850| 66 2c 67 2c 68 2c 69 2c | 6a 2c 6b 2c 6c 2c 6d 2c |f,g,h,i,|j,k,l,m,|
|00005860| 6e 2c 6f 2c 70 2c 71 2c | 72 2c 73 2c 74 2c 75 2c |n,o,p,q,|r,s,t,u,|
|00005870| 76 2c 77 2c 78 2c 79 2c | 7a 22 20 69 6e 74 6f 20 |v,w,x,y,|z" into |
|00005880| 61 6c 70 68 61 62 65 74 | 0d 72 65 70 65 61 74 20 |alphabet|.repeat |
|00005890| 77 69 74 68 20 78 20 3d | 20 31 20 74 6f 20 74 68 |with x =| 1 to th|
|000058a0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 69 74 65 6d |e number| of item|
|000058b0| 73 20 6f 66 20 61 6c 70 | 68 61 62 65 74 0d 70 75 |s of alp|habet.pu|
|000058c0| 74 20 28 22 d5 22 20 26 | 20 69 74 65 6d 20 78 20 |t ("." &| item x |
|000058d0| 6f 66 20 61 6c 70 68 61 | 62 65 74 29 20 69 6e 74 |of alpha|bet) int|
|000058e0| 6f 20 6f 6c 64 0d 70 75 | 74 20 28 22 d4 22 20 26 |o old.pu|t ("." &|
|000058f0| 20 69 74 65 6d 20 78 20 | 6f 66 20 61 6c 70 68 61 | item x |of alpha|
|00005900| 62 65 74 29 20 69 6e 74 | 6f 20 6e 65 77 0d 72 65 |bet) int|o new.re|
|00005910| 70 65 61 74 0d 73 65 6e | 64 20 22 66 69 6e 64 20 |peat.sen|d "find |
|00005920| 73 74 72 69 6e 67 22 20 | 26 20 71 75 6f 74 65 20 |string" |& quote |
|00005930| 26 20 6f 6c 64 20 26 20 | 71 75 6f 74 65 20 26 26 |& old & |quote &&|
|00005940| 20 22 69 6e 20 66 6c 64 | 20 42 6f 64 79 22 20 74 | "in fld| Body" t|
|00005950| 6f 20 48 79 70 65 72 43 | 61 72 64 0d 69 66 20 74 |o HyperC|ard.if t|
|00005960| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 6e 6f 74 |he resul|t is not|
|00005970| 20 65 6d 70 74 79 20 6f | 72 20 66 6c 64 20 22 41 | empty o|r fld "A|
|00005980| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 73 20 6e |rticleNa|me" is n|
|00005990| 6f 74 20 77 68 61 74 43 | 68 61 70 20 74 68 65 6e |ot whatC|hap then|
|000059a0| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 64 6f 20 | exit re|peat.do |
|000059b0| 22 70 75 74 20 6e 65 77 | 20 69 6e 74 6f 20 22 20 |"put new| into " |
|000059c0| 26 20 74 68 65 20 66 6f | 75 6e 64 43 68 75 6e 6b |& the fo|undChunk|
|000059d0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|000059e0| 72 65 70 65 61 74 0d 67 | 6f 20 66 69 72 73 74 20 |repeat.g|o first |
|000059f0| 6d 61 72 6b 65 64 20 63 | 64 0d 0d 2d 2d 20 53 6d |marked c|d..-- Sm|
|00005a00| 61 72 74 65 6e 73 20 74 | 68 65 20 6f 64 64 20 28 |artens t|he odd (|
|00005a10| 60 29 20 6f 66 74 65 6e | 20 75 73 65 64 20 62 79 |`) often| used by|
|00005a20| 20 74 72 61 6e 73 63 72 | 69 62 65 72 73 20 66 6f | transcr|ibers fo|
|00005a30| 72 20 66 72 6f 6e 74 d0 | 73 69 6e 67 6c 65 0d 2d |r front.|single.-|
|00005a40| 2d 20 71 75 6f 74 65 73 | 20 69 6e 20 42 72 69 74 |- quotes| in Brit|
|00005a50| 69 73 68 20 74 65 78 74 | 20 74 72 61 6e 73 63 72 |ish text| transcr|
|00005a60| 69 70 74 69 6f 6e 73 2e | 20 53 45 45 20 22 41 20 |iptions.| SEE "A |
|00005a70| 43 68 72 69 73 74 6d 61 | 73 20 43 61 72 6f 6c 22 |Christma|s Carol"|
|00005a80| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 2e 0d 72 65 | for exa|mple..re|
|00005a90| 70 65 61 74 0d 66 69 6e | 64 20 22 60 22 20 69 6e |peat.fin|d "`" in|
|00005aa0| 20 66 6c 64 20 22 42 6f | 64 79 22 0d 69 66 20 74 | fld "Bo|dy".if t|
|00005ab0| 68 65 20 72 65 73 75 6c | 74 20 69 73 20 6e 6f 74 |he resul|t is not|
|00005ac0| 20 65 6d 70 74 79 20 6f | 72 20 66 6c 64 20 22 41 | empty o|r fld "A|
|00005ad0| 72 74 69 63 6c 65 4e 61 | 6d 65 22 20 69 73 20 6e |rticleNa|me" is n|
|00005ae0| 6f 74 20 77 68 61 74 43 | 68 61 70 20 74 68 65 6e |ot whatC|hap then|
|00005af0| 20 65 78 69 74 20 72 65 | 70 65 61 74 0d 70 75 74 | exit re|peat.put|
|00005b00| 20 77 6f 72 64 20 32 20 | 6f 66 20 74 68 65 20 66 | word 2 |of the f|
|00005b10| 6f 75 6e 64 43 68 75 6e | 6b 20 69 6e 74 6f 20 6e |oundChun|k into n|
|00005b20| 65 77 43 68 61 72 0d 70 | 75 74 20 22 d4 22 20 69 |ewChar.p|ut "." i|
|00005b30| 6e 74 6f 20 63 68 61 72 | 20 6e 65 77 43 68 61 72 |nto char| newChar|
|00005b40| 20 6f 66 20 66 6c 64 20 | 22 42 6f 64 79 22 0d 65 | of fld |"Body".e|
|00005b50| 6e 64 20 72 65 70 65 61 | 74 0d 67 6f 20 66 69 72 |nd repea|t.go fir|
|00005b60| 73 74 20 6d 61 72 6b 65 | 64 20 63 64 0d 65 6e 64 |st marke|d cd.end|
|00005b70| 20 73 6d 61 72 74 65 6e | 53 69 6e 67 6c 65 51 75 | smarten|SingleQu|
|00005b80| 6f 74 65 73 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 74 |otes..fu|nction t|
|00005b90| 6f 6f 6c 73 53 74 61 63 | 6b 0d 72 65 74 75 72 6e |oolsStac|k.return|
|00005ba0| 20 28 22 4d 61 67 4d 61 | 6b 65 72 20 54 6f 6f 6c | ("MagMa|ker Tool|
|00005bb0| 73 22 20 69 73 20 69 6e | 20 74 68 65 20 6e 61 6d |s" is in| the nam|
|00005bc0| 65 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 29 |e of thi|s stack)|
|00005bd0| 0d 65 6e 64 20 74 6f 6f | 6c 73 53 74 61 63 6b 0d |.end too|lsStack.|
|00005be0| 0d 6f 6e 20 72 65 66 6c | 6f 77 57 69 74 68 53 74 |.on refl|owWithSt|
|00005bf0| 79 6c 65 20 68 6f 6c 64 | 55 70 64 61 74 65 0d 67 |yle hold|Update.g|
|00005c00| 6c 6f 62 61 6c 20 6d 61 | 70 70 65 72 0d 70 75 74 |lobal ma|pper.put|
|00005c10| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 6d 61 70 70 | empty i|nto mapp|
|00005c20| 65 72 0d 70 75 74 20 74 | 68 65 20 6c 6f 63 6b 54 |er.put t|he lockT|
|00005c30| 65 78 74 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |ext of f|ld "Body|
|00005c40| 22 20 69 6e 74 6f 20 72 | 65 4c 6f 63 6b 0d 73 65 |" into r|eLock.se|
|00005c50| 74 20 74 68 65 20 6c 6f | 63 6b 54 65 78 74 20 6f |t the lo|ckText o|
|00005c60| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 74 6f 20 |f fld "B|ody" to |
|00005c70| 74 72 75 65 0d 70 75 74 | 20 74 68 65 20 76 69 73 |true.put| the vis|
|00005c80| 69 62 6c 65 20 6f 66 20 | 6d 73 67 20 69 6e 74 6f |ible of |msg into|
|00005c90| 20 72 65 4d 73 67 0d 70 | 75 74 20 66 6c 64 20 22 | reMsg.p|ut fld "|
|00005ca0| 41 72 74 69 63 6c 65 4e | 61 6d 65 22 20 69 6e 74 |ArticleN|ame" int|
|00005cb0| 6f 20 74 68 69 73 43 68 | 61 70 74 65 72 0d 70 75 |o thisCh|apter.pu|
|00005cc0| 73 68 20 63 64 0d 6c 6f | 63 6b 20 73 63 72 65 65 |sh cd.lo|ck scree|
|00005cd0| 6e 0d 6c 6f 63 6b 20 6d | 65 73 73 61 67 65 73 0d |n.lock m|essages.|
|00005ce0| 75 6e 6d 61 72 6b 20 61 | 6c 6c 20 63 64 73 0d 6d |unmark a|ll cds.m|
|00005cf0| 61 72 6b 20 63 64 73 20 | 77 68 65 72 65 20 66 6c |ark cds |where fl|
|00005d00| 64 20 22 41 72 74 69 63 | 6c 65 4e 61 6d 65 22 20 |d "Artic|leName" |
|00005d10| 69 73 20 74 68 69 73 43 | 68 61 70 74 65 72 0d 67 |is thisC|hapter.g|
|00005d20| 6f 20 66 69 72 73 74 20 | 6d 61 72 6b 65 64 20 63 |o first |marked c|
|00005d30| 64 0d 70 75 74 20 74 68 | 65 20 69 64 20 6f 66 20 |d.put th|e id of |
|00005d40| 74 68 69 73 20 63 64 20 | 69 6e 74 6f 20 66 69 72 |this cd |into fir|
|00005d50| 73 74 43 64 0d 72 65 70 | 65 61 74 20 77 69 74 68 |stCd.rep|eat with|
|00005d60| 20 78 20 3d 20 31 20 74 | 6f 20 28 74 68 65 20 6e | x = 1 t|o (the n|
|00005d70| 75 6d 62 65 72 20 6f 66 | 20 6d 61 72 6b 65 64 20 |umber of| marked |
|00005d80| 63 64 73 29 0d 69 66 20 | 74 68 65 20 68 69 67 68 |cds).if |the high|
|00005d90| 6c 69 67 68 74 20 6f 66 | 20 62 67 20 62 74 6e 20 |light of| bg btn |
|00005da0| 22 4c 6f 63 6b 50 61 67 | 65 22 20 74 68 65 6e 0d |"LockPag|e" then.|
|00005db0| 67 6f 20 6e 65 78 74 20 | 6d 61 72 6b 65 64 20 63 |go next |marked c|
|00005dc0| 64 0d 6e 65 78 74 20 72 | 65 70 65 61 74 0d 65 6e |d.next r|epeat.en|
|00005dd0| 64 20 69 66 0d 72 65 70 | 65 61 74 20 77 69 74 68 |d if.rep|eat with|
|00005de0| 20 77 20 3d 20 31 20 74 | 6f 20 28 74 68 65 20 6e | w = 1 t|o (the n|
|00005df0| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 6f |umber of| lines o|
|00005e00| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 29 0d 69 66 |f fld "B|ody").if|
|00005e10| 20 74 68 65 20 74 65 78 | 74 53 74 79 6c 65 20 6f | the tex|tStyle o|
|00005e20| 66 20 6c 69 6e 65 20 77 | 20 6f 66 20 66 6c 64 20 |f line w| of fld |
|00005e30| 22 42 6f 64 79 22 20 69 | 73 20 6e 6f 74 20 70 6c |"Body" i|s not pl|
|00005e40| 61 69 6e 20 74 68 65 6e | 0d 70 75 74 20 31 20 69 |ain then|.put 1 i|
|00005e50| 6e 74 6f 20 79 0d 72 65 | 70 65 61 74 0d 69 66 20 |nto y.re|peat.if |
|00005e60| 79 20 3e 3d 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |y >= the| number |
|00005e70| 6f 66 20 63 68 61 72 73 | 20 6f 66 20 6c 69 6e 65 |of chars| of line|
|00005e80| 20 77 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 | w of fl|d "Body"|
|00005e90| 20 74 68 65 6e 20 65 78 | 69 74 20 72 65 70 65 61 | then ex|it repea|
|00005ea0| 74 0d 70 75 74 20 22 4d | 61 70 70 69 6e 67 20 73 |t.put "M|apping s|
|00005eb0| 74 79 6c 65 20 6f 66 20 | 6c 69 6e 65 22 20 26 26 |tyle of |line" &&|
|00005ec0| 20 77 20 26 20 22 20 6f | 66 20 70 61 67 65 20 22 | w & " o|f page "|
|00005ed0| 20 26 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 | & the n|umber of|
|00005ee0| 20 74 68 69 73 20 63 64 | 20 26 20 22 2e 22 0d 69 | this cd| & ".".i|
|00005ef0| 66 20 74 68 65 20 74 65 | 78 74 53 74 79 6c 65 20 |f the te|xtStyle |
|00005f00| 6f 66 20 63 68 61 72 20 | 79 20 6f 66 20 6c 69 6e |of char |y of lin|
|00005f10| 65 20 77 20 6f 66 20 66 | 6c 64 20 22 42 6f 64 79 |e w of f|ld "Body|
|00005f20| 22 20 69 73 20 6e 6f 74 | 20 70 6c 61 69 6e 20 74 |" is not| plain t|
|00005f30| 68 65 6e 0d 70 75 74 20 | 79 20 69 6e 74 6f 20 66 |hen.put |y into f|
|00005f40| 69 72 73 74 43 68 61 72 | 0d 70 75 74 20 74 65 78 |irstChar|.put tex|
|00005f50| 74 53 74 79 6c 65 20 6f | 66 20 63 68 61 72 20 79 |tStyle o|f char y|
|00005f60| 20 6f 66 20 6c 69 6e 65 | 20 77 20 6f 66 20 66 6c | of line| w of fl|
|00005f70| 64 20 22 42 6f 64 79 22 | 20 69 6e 74 6f 20 63 75 |d "Body"| into cu|
|00005f80| 72 53 74 79 6c 65 0d 72 | 65 70 65 61 74 20 75 6e |rStyle.r|epeat un|
|00005f90| 74 69 6c 20 63 75 72 53 | 74 79 6c 65 20 69 73 20 |til curS|tyle is |
|00005fa0| 6e 6f 74 20 74 68 65 20 | 74 65 78 74 53 74 79 6c |not the |textStyl|
|00005fb0| 65 20 6f 66 20 63 68 61 | 72 20 79 20 6f 66 20 6c |e of cha|r y of l|
|00005fc0| 69 6e 65 20 77 20 6f 66 | 20 66 6c 64 20 22 42 6f |ine w of| fld "Bo|
|00005fd0| 64 79 22 20 6f 72 20 63 | 68 61 72 20 79 20 6f 66 |dy" or c|har y of|
|00005fe0| 20 6c 69 6e 65 20 77 20 | 6f 66 20 66 6c 64 20 22 | line w |of fld "|
|00005ff0| 42 6f 64 79 22 20 69 73 | 20 72 65 74 75 72 6e 20 |Body" is| return |
|00006000| 6f 72 20 c2 0d 79 20 3e | 20 74 68 65 20 6e 75 6d |or ..y >| the num|
|00006010| 62 65 72 20 6f 66 20 63 | 68 61 72 73 20 6f 66 20 |ber of c|hars of |
|00006020| 6c 69 6e 65 20 77 20 6f | 66 20 66 6c 64 20 22 42 |line w o|f fld "B|
|00006030| 6f 64 79 22 0d 61 64 64 | 20 31 20 74 6f 20 79 0d |ody".add| 1 to y.|
|00006040| 65 6e 64 20 72 65 70 65 | 61 74 0d 70 75 74 20 63 |end repe|at.put c|
|00006050| 68 61 72 20 66 69 72 73 | 74 43 68 61 72 20 74 6f |har firs|tChar to|
|00006060| 20 28 79 20 2d 20 31 29 | 20 6f 66 20 6c 69 6e 65 | (y - 1)| of line|
|00006070| 20 77 20 6f 66 20 66 6c | 64 20 22 42 6f 64 79 22 | w of fl|d "Body"|
|00006080| 20 69 6e 74 6f 20 73 74 | 79 6c 65 43 68 75 6e 6b | into st|yleChunk|
|00006090| 0d 70 75 74 20 63 68 61 | 72 20 28 66 69 72 73 74 |.put cha|r (first|
|000060a0| 43 68 61 72 20 2d 20 31 | 30 29 20 74 6f 20 28 66 |Char - 1|0) to (f|
|000060b0| 69 72 73 74 43 68 61 72 | 20 2d 20 31 29 20 6f 66 |irstChar| - 1) of|
|000060c0| 20 6c 69 6e 65 20 77 20 | 6f 66 20 66 6c 64 20 22 | line w |of fld "|
|000060d0| 42 6f 64 79 22 20 69 6e | 74 6f 20 63 68 65 63 6b |Body" in|to check|
|000060e0| 42 65 66 6f 72 65 0d 70 | 75 74 20 63 68 61 72 20 |Before.p|ut char |
|000060f0| 79 20 74 6f 20 28 79 20 | 2b 20 39 29 20 6f 66 20 |y to (y |+ 9) of |
|00006100| 6c 69 6e 65 20 77 20 6f | 66 20 66 6c 64 20 22 42 |line w o|f fld "B|
|00006110| 6f 64 79 22 20 69 6e 74 | 6f 20 63 68 65 63 6b 41 |ody" int|o checkA|
|00006120| 66 74 65 72 0d 69 66 20 | 72 65 74 75 72 6e 20 69 |fter.if |return i|
|00006130| 73 20 69 6e 20 73 74 79 | 6c 65 43 68 75 6e 6b 20 |s in sty|leChunk |
|00006140| 74 68 65 6e 0d 72 65 70 | 65 61 74 20 77 68 69 6c |then.rep|eat whil|
|00006150| 65 20 6f 66 66 73 65 74 | 28 72 65 74 75 72 6e 2c |e offset|(return,|
|00006160| 73 74 79 6c 65 43 68 75 | 6e 6b 29 20 3c 3e 20 30 |styleChu|nk) <> 0|
|00006170| 0d 70 75 74 20 63 68 61 | 72 20 31 20 74 6f 20 6f |.put cha|r 1 to o|
|00006180| 66 66 73 65 74 28 72 65 | 74 75 72 6e 2c 73 74 79 |ffset(re|turn,sty|
|00006190| 6c 65 43 68 75 6e 6b 29 | 20 6f 66 20 73 74 79 6c |leChunk)| of styl|
|000061a0| 65 43 68 75 6e 6b 20 69 | 6e 74 6f 20 66 69 72 73 |eChunk i|nto firs|
|000061b0| 74 43 68 75 6e 6b 0d 70 | 75 74 20 71 75 6f 74 65 |tChunk.p|ut quote|
|000061c0| 20 26 20 66 69 72 73 74 | 43 68 75 6e 6b 20 26 20 | & first|Chunk & |
|000061d0| 71 75 6f 74 65 20 26 20 | 72 65 74 75 72 6e 20 26 |quote & |return &|
|000061e0| 20 63 75 72 53 74 79 6c | 65 20 26 20 72 65 74 75 | curStyl|e & retu|
|000061f0| 72 6e 20 61 66 74 65 72 | 20 6d 61 70 70 65 72 0d |rn after| mapper.|
|00006200| 64 65 6c 65 74 65 20 63 | 68 61 72 20 31 20 74 6f |delete c|har 1 to|
|00006210| 20 6f 66 66 73 65 74 28 | 72 65 74 75 72 6e 2c 73 | offset(|return,s|
|00006220| 74 79 6c 65 43 68 75 6e | 6b 29 20 6f 66 20 73 74 |tyleChun|k) of st|
|00006230| 79 6c 65 43 68 75 6e 6b | 0d 65 6e 64 20 72 65 70 |yleChunk|.end rep|
|00006240| 65 61 74 0d 65 6c 73 65 | 0d 70 75 74 20 73 74 79 |eat.else|.put sty|
|00006250| 6c 65 43 68 75 6e 6b 20 | 26 20 72 65 74 75 72 6e |leChunk |& return|
|00006260| 20 26 20 63 75 72 53 74 | 79 6c 65 20 26 20 72 65 | & curSt|yle & re|
|00006270| 74 75 72 6e 20 26 20 63 | 68 65 63 6b 42 65 66 6f |turn & c|heckBefo|
|00006280| 72 65 20 26 20 72 65 74 | 75 72 6e 20 26 c2 0d 63 |re & ret|urn &..c|
|00006290| 68 65 63 6b 41 66 74 65 | 72 20 26 20 72 65 74 75 |heckAfte|r & retu|
|000062a0| 72 6e 20 61 66 74 65 72 | 20 6d 61 70 70 65 72 0d |rn after| mapper.|
|000062b0| 65 6e 64 20 69 66 0d 0d | 65 6e 64 20 69 66 0d 61 |end if..|end if.a|
|000062c0| 64 64 20 31 20 74 6f 20 | 79 0d 65 6e 64 20 72 65 |dd 1 to |y.end re|
|000062d0| 70 65 61 74 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |peat.end| if.end |
|000062e0| 72 65 70 65 61 74 0d 67 | 6f 20 6e 65 78 74 20 6d |repeat.g|o next m|
|000062f0| 61 72 6b 65 64 20 63 64 | 0d 69 66 20 74 68 65 20 |arked cd|.if the |
|00006300| 69 64 20 6f 66 20 74 68 | 69 73 20 63 64 20 69 73 |id of th|is cd is|
|00006310| 20 66 69 72 73 74 43 64 | 20 74 68 65 6e 20 65 78 | firstCd| then ex|
|00006320| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 72 65 |it repea|t.end re|
|00006330| 70 65 61 74 0d 69 66 20 | 68 6f 6c 64 55 70 64 61 |peat.if |holdUpda|
|00006340| 74 65 20 69 73 20 6e 6f | 74 20 74 72 75 65 20 74 |te is no|t true t|
|00006350| 68 65 6e 20 2d 2d 20 71 | 75 65 73 74 69 6f 6e 3f |hen -- q|uestion?|
|00006360| 0d 64 6f 55 70 64 61 74 | 65 0d 69 66 20 6d 61 70 |.doUpdat|e.if map|
|00006370| 70 65 72 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |per is n|ot empty|
|00006380| 20 74 68 65 6e 0d 70 75 | 74 20 22 52 65 2d 6d 61 | then.pu|t "Re-ma|
|00006390| 70 70 69 6e 67 20 73 74 | 79 6c 65 73 2e 22 0d 72 |pping st|yles.".r|
|000063a0| 65 53 74 79 6c 65 42 6f | 64 79 0d 65 6e 64 20 69 |eStyleBo|dy.end i|
|000063b0| 66 0d 65 6e 64 20 69 66 | 0d 70 6f 70 20 63 64 0d |f.end if|.pop cd.|
|000063c0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 66 6c |if there| is a fl|
|000063d0| 64 20 22 42 6f 64 79 22 | 20 74 68 65 6e 20 73 65 |d "Body"| then se|
|000063e0| 74 20 74 68 65 20 6c 6f | 63 6b 54 65 78 74 20 6f |t the lo|ckText o|
|000063f0| 66 20 66 6c 64 20 22 42 | 6f 64 79 22 20 74 6f 20 |f fld "B|ody" to |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.